Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.NandGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadModel(Modelica): time 1.57/1.57, allocations: 171.3 MB / 179.2 MB, free: 7.598 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.238e-05/2.255e-05, allocations: 4 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06808/0.06813, allocations: 38.77 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2757/0.3438, allocations: 69.32 MB / 330.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.3441, allocations: 69.33 kB / 330.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03851/0.3826, allocations: 10.22 MB / 340.9 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.203e-06/0.3827, allocations: 0 / 340.9 MB, free: 10.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.3827, allocations: 16 kB / 340.9 MB, free: 10.34 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002994/0.3857, allocations: 1.073 MB / 342 MB, free: 9.246 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3858, allocations: 12.03 kB / 342 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002817/0.3861, allocations: 71.16 kB / 342.1 MB, free: 9.164 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008175/0.3869, allocations: 420.6 kB / 342.5 MB, free: 8.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.387, allocations: 27.2 kB / 342.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.3871, allocations: 32 kB / 342.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001452/0.3886, allocations: 0.5657 MB / 343.1 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3901, allocations: 0.6528 MB / 343.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.3901, allocations: 0 / 343.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.664e-05/0.3902, allocations: 0 / 343.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.3902, allocations: 16 kB / 343.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006243/0.3965, allocations: 3.072 MB / 346.8 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.398, allocations: 0.6608 MB / 347.5 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006681/0.3987, allocations: 291.9 kB / 347.8 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.267e-05/0.3988, allocations: 20.31 kB / 347.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000697/0.3995, allocations: 311.1 kB / 348.1 MB, free: 4.395 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 6.173e-06/0.3995, allocations: 3.984 kB / 348.1 MB, free: 4.391 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.001248/0.4008, allocations: 487.3 kB / 348.6 MB, free: 4.059 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.4009, allocations: 265.5 kB / 348.8 MB, free: 3.734 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006503/0.4016, allocations: 411.1 kB / 349.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.4017, allocations: 25.7 kB / 349.3 MB, free: 3.395 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/0.402, allocations: 380.2 kB / 349.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.4022, allocations: 161.6 kB / 349.8 MB, free: 2.906 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.663e-05/0.4023, allocations: 4 kB / 349.8 MB, free: 2.902 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4025, allocations: 342.8 kB / 350.1 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/0.4031, allocations: 237.6 kB / 350.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008241/0.404, allocations: 485.6 kB / 350.8 MB, free: 1.742 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.4046, allocations: 262.8 kB / 351.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.826e-06/0.4046, allocations: 0 / 351.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001743/0.4064, allocations: 0.6787 MB / 351.8 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.737e-05/0.4065, allocations: 67.39 kB / 351.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.4065, allocations: 8 kB / 351.9 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.4065, allocations: 12 kB / 351.9 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.4079, allocations: 243.7 kB / 352.1 MB, free: 480 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-05/0.4079, allocations: 15.92 kB / 352.1 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.4093, allocations: 207.1 kB / 352.3 MB, free: 256 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-05/0.4094, allocations: 32 kB / 352.4 MB, free: 224 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.4096, allocations: 136.7 kB / 352.5 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.4098, allocations: 55.34 kB / 352.5 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002054/0.41, allocations: 57.28 kB / 352.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.41, allocations: 8 kB / 352.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.959e-06/0.4101, allocations: 4 kB / 352.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.4101, allocations: 3.984 kB / 352.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.4128, allocations: 1.276 MB / 353.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.973e-06/0.4128, allocations: 0 / 353.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.4139, allocations: 183.8 kB / 354.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.222e-06/0.4139, allocations: 0 / 354.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-05/0.414, allocations: 8 kB / 354.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.414, allocations: 4 kB / 354.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.633e-06/0.414, allocations: 3.953 kB / 354.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.4159, allocations: 0.8613 MB / 354.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.4161, allocations: 136.3 kB / 355.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.4162, allocations: 12.06 kB / 355.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009688/0.4172, allocations: 131.8 kB / 355.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.4174, allocations: 60.34 kB / 355.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.115e-05/0.4175, allocations: 15.95 kB / 355.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004804/0.4179, allocations: 299 kB / 355.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.37e-07/0.418, allocations: 0 / 355.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007931/0.4188, allocations: 155.6 kB / 355.7 MB, free: 12.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002095/0.419, allocations: 107.2 kB / 355.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.4204, allocations: 0.6833 MB / 356.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.4205, allocations: 4 kB / 356.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.4211, allocations: 265.5 kB / 356.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.4216, allocations: 62.42 kB / 356.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.4238, allocations: 0.8452 MB / 357.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006146/0.4244, allocations: 0.8745 MB / 358.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/0.4248, allocations: 59.42 kB / 358.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of SimCode: time 1.515e-06/0.4249, allocations: 0 / 358.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of Templates: time 0.01584/0.4407, allocations: 8.186 MB / 366.8 MB, free: 1.578 MB / 298.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5059]=0.000000 File[1]=0.000000 " Variables in the reference:time,Nand.C4.v,Nand.C7.v Variables in the result:Gnd1.p.i,Gnd1.p.v,Gnd4.p.i,Gnd4.p.v,Gnd5.p.i,Gnd5.p.v,Nand.C4.C,der(Nand.C4.v),Nand.C4.i,Nand.C4.n.i,Nand.C4.n.v,Nand.C4.p.i,Nand.C4.p.v,Nand.C4.v,Nand.C7.C,der(Nand.C7.v),Nand.C7.i,Nand.C7.n.i,Nand.C7.n.v,Nand.C7.p.i,Nand.C7.p.v,Nand.C7.v,Nand.Gnd.p.i,Nand.Gnd.p.v,Nand.Gnd2.p.i,Nand.Gnd2.p.v,Nand.Gnd3.p.i,Nand.Gnd3.p.v,Nand.Gnd6.p.i,Nand.Gnd6.p.v,Nand.Gnd7.p.i,Nand.Gnd7.p.v,Nand.Gnd8.p.i,Nand.Gnd8.p.v,Nand.TN1.B.i,Nand.TN1.B.v,Nand.TN1.Beta,Nand.TN1.D.i,Nand.TN1.D.v,Nand.TN1.G.i,Nand.TN1.G.v,Nand.TN1.K2,Nand.TN1.K5,Nand.TN1.L,Nand.TN1.LossPower,Nand.TN1.RDS,Nand.TN1.S.i,Nand.TN1.S.v,Nand.TN1.T,Nand.TN1.T_heatPort,Nand.TN1.Vt,Nand.TN1.W,Nand.TN1.dL,Nand.TN1.dW,Nand.TN1.gds,Nand.TN1.id,Nand.TN1.ubs,Nand.TN1.ud,Nand.TN1.uds,Nand.TN1.ugst,Nand.TN1.us,Nand.TN1.useHeatPort,Nand.TN1.v,Nand.TN2.B.i,Nand.TN2.B.v,Nand.TN2.Beta,Nand.TN2.D.i,Nand.TN2.D.v,Nand.TN2.G.i,Nand.TN2.G.v,Nand.TN2.K2,Nand.TN2.K5,Nand.TN2.L,Nand.TN2.LossPower,Nand.TN2.RDS,Nand.TN2.S.i,Nand.TN2.S.v,Nand.TN2.T,Nand.TN2.T_heatPort,Nand.TN2.Vt,Nand.TN2.W,Nand.TN2.dL,Nand.TN2.dW,Nand.TN2.gds,Nand.TN2.id,Nand.TN2.ubs,Nand.TN2.ud,Nand.TN2.uds,Nand.TN2.ugst,Nand.TN2.us,Nand.TN2.useHeatPort,Nand.TN2.v,Nand.TP1.B.i,Nand.TP1.B.v,Nand.TP1.Beta,Nand.TP1.D.i,Nand.TP1.D.v,Nand.TP1.G.i,Nand.TP1.G.v,Nand.TP1.K2,Nand.TP1.K5,Nand.TP1.L,Nand.TP1.LossPower,Nand.TP1.RDS,Nand.TP1.S.i,Nand.TP1.S.v,Nand.TP1.T,Nand.TP1.T_heatPort,Nand.TP1.Vt,Nand.TP1.W,Nand.TP1.dL,Nand.TP1.dW,Nand.TP1.gds,Nand.TP1.id,Nand.TP1.ubs,Nand.TP1.ud,Nand.TP1.uds,Nand.TP1.ugst,Nand.TP1.us,Nand.TP1.useHeatPort,Nand.TP1.v,Nand.TP2.B.i,Nand.TP2.B.v,Nand.TP2.Beta,Nand.TP2.D.i,Nand.TP2.D.v,Nand.TP2.G.i,Nand.TP2.G.v,Nand.TP2.K2,Nand.TP2.K5,Nand.TP2.L,Nand.TP2.LossPower,Nand.TP2.RDS,Nand.TP2.S.i,Nand.TP2.S.v,Nand.TP2.T,Nand.TP2.T_heatPort,Nand.TP2.Vt,Nand.TP2.W,Nand.TP2.dL,Nand.TP2.dW,Nand.TP2.gds,Nand.TP2.id,Nand.TP2.ubs,Nand.TP2.ud,Nand.TP2.uds,Nand.TP2.ugst,Nand.TP2.us,Nand.TP2.useHeatPort,Nand.TP2.v,Nand.Vdd.i,Nand.Vdd.v,Nand.x1.i,Nand.x1.v,Nand.x2.i,Nand.x2.v,Nand.y.i,Nand.y.v,VDD.V,VDD.duration,VDD.i,VDD.n.i,VDD.n.v,VDD.offset,VDD.p.i,VDD.p.v,VDD.signalSource.duration,VDD.signalSource.height,VDD.signalSource.offset,VDD.signalSource.startTime,VDD.signalSource.y,VDD.startTime,VDD.v,VIN1.V,VIN1.falling,VIN1.i,VIN1.n.i,VIN1.n.v,VIN1.nperiod,VIN1.offset,VIN1.p.i,VIN1.p.v,VIN1.period,VIN1.rising,VIN1.signalSource.T_falling,VIN1.signalSource.T_rising,VIN1.signalSource.T_start,VIN1.signalSource.T_width,VIN1.signalSource.amplitude,VIN1.signalSource.count,VIN1.signalSource.falling,VIN1.signalSource.nperiod,VIN1.signalSource.offset,VIN1.signalSource.period,VIN1.signalSource.rising,VIN1.signalSource.startTime,VIN1.signalSource.width,VIN1.signalSource.y,VIN1.startTime,VIN1.v,VIN1.width,VIN2.V,VIN2.falling,VIN2.i,VIN2.n.i,VIN2.n.v,VIN2.nperiod,VIN2.offset,VIN2.p.i,VIN2.p.v,VIN2.period,VIN2.rising,VIN2.signalSource.T_falling,VIN2.signalSource.T_rising,VIN2.signalSource.T_start,VIN2.signalSource.T_width,VIN2.signalSource.amplitude,VIN2.signalSource.count,VIN2.signalSource.falling,VIN2.signalSource.nperiod,VIN2.signalSource.offset,VIN2.signalSource.period,VIN2.signalSource.rising,VIN2.signalSource.startTime,VIN2.signalSource.width,VIN2.signalSource.y,VIN2.startTime,VIN2.v,VIN2.width,_D_whenCondition1,_D_whenCondition2,time