Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Electrical.Analog.Examples.NandGate") 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.3_cpp_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00143/0.00143, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 89.3 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004092/0.0004091, allocations: 15.98 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3338, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.4638, allocations: 79.7 MB / 454.2 MB, free: 1.086 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.4641, allocations: 75.97 kB / 454.3 MB, free: 1.012 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04721/0.5113, allocations: 10.27 MB / 464.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5114, allocations: 0 / 464.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.965e-05/0.5114, allocations: 12 kB / 464.6 MB, free: 6.695 MB / 346.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.004582/0.516, allocations: 1.14 MB / 465.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.5161, allocations: 8.031 kB / 465.7 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003443/0.5165, allocations: 71.16 kB / 465.8 MB, free: 5.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008904/0.5174, allocations: 436.7 kB / 466.2 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.5175, allocations: 41.31 kB / 466.3 MB, free: 4.902 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/0.5176, allocations: 52 kB / 466.3 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004137/0.5218, allocations: 0.9994 MB / 467.3 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.5219, allocations: 0 / 467.3 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.522, allocations: 24 kB / 467.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.522, allocations: 12 kB / 467.3 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006068/0.5281, allocations: 1.132 MB / 468.5 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008299/0.5364, allocations: 3.166 MB / 471.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004649/0.5412, allocations: 1.031 MB / 472.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.5413, allocations: 16.42 kB / 472.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002397/0.5437, allocations: 0.5088 MB / 473.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 4.518e-06/0.5438, allocations: 0 / 473.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.00637/0.5501, allocations: 1.263 MB / 474.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.5503, allocations: 269.4 kB / 474.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.5515, allocations: 460.9 kB / 475.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001736/0.5517, allocations: 37.7 kB / 475.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000319/0.552, allocations: 374.1 kB / 475.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.5523, allocations: 173.6 kB / 475.7 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.5524, allocations: 16 kB / 475.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5525, allocations: 334.8 kB / 476.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.5549, allocations: 461.7 kB / 476.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.5576, allocations: 0.7042 MB / 477.2 MB, free: 9.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.5602, allocations: 0.5247 MB / 477.8 MB, free: 8.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/0.5602, allocations: 4 kB / 477.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005582/0.5658, allocations: 1.213 MB / 479 MB, free: 7.691 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.328e-05/0.5659, allocations: 63.41 kB / 479.1 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/0.566, allocations: 8 kB / 479.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.357e-05/0.566, allocations: 12 kB / 479.1 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.5682, allocations: 251.9 kB / 479.3 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-05/0.5682, allocations: 11.95 kB / 479.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/0.5704, allocations: 227 kB / 479.5 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.5705, allocations: 31.98 kB / 479.6 MB, free: 7.086 MB / 362.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 () * Number of clocked 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.0005458/0.5711, allocations: 213.6 kB / 479.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.5713, allocations: 55.34 kB / 479.8 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.5715, allocations: 73.52 kB / 479.9 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.5715, allocations: 8 kB / 479.9 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5715, allocations: 0 / 479.9 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.5716, allocations: 3.953 kB / 479.9 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005963/0.5775, allocations: 1.751 MB / 481.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.5776, allocations: 0 / 481.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.5793, allocations: 179.8 kB / 481.9 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.5793, allocations: 3.953 kB / 481.9 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.661e-05/0.5794, allocations: 11.98 kB / 481.9 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.156e-06/0.5794, allocations: 4 kB / 481.9 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5794, allocations: 0 / 481.9 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006826/0.5862, allocations: 1.466 MB / 483.3 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.5866, allocations: 136.4 kB / 483.5 MB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.5868, allocations: 15.95 kB / 483.5 MB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.5883, allocations: 143.9 kB / 483.6 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.5885, allocations: 52.36 kB / 483.7 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.018e-05/0.5886, allocations: 19.98 kB / 483.7 MB, free: 2.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008273/0.5895, allocations: 346.8 kB / 484 MB, free: 2.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5895, allocations: 3.938 kB / 484 MB, free: 2.516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009027/0.5904, allocations: 175.7 kB / 484.2 MB, free: 2.344 MB / 362.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) * Number of clocked states: 0 () * 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.0002368/0.5906, allocations: 115.2 kB / 484.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004839/0.5955, allocations: 1.118 MB / 485.4 MB, free: 1.082 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.5955, allocations: 4.312 kB / 485.4 MB, free: 1.078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.5977, allocations: 470.2 kB / 485.9 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007314/0.5984, allocations: 79.98 kB / 486 MB, free: 0.543 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.6023, allocations: 1.442 MB / 487.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/0.6029, allocations: 0.871 MB / 488.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005713/0.6035, allocations: 55.42 kB / 488.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6035, allocations: 0 / 488.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of Templates: time 0.01929/0.6228, allocations: 8.393 MB / 496.7 MB, free: 5.73 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "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.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.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.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.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.amplitude,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.amplitude,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,time