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.001524/0.001528, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.989/1.989, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001074/0.001074, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.213e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09539/0.09544, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.5002, allocations: 79.61 MB / 448.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.5006, allocations: 66.59 kB / 448.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04808/0.5487, allocations: 10.26 MB / 459 MB, free: 4.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.696e-06/0.5487, allocations: 0 / 459 MB, free: 4.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.5488, allocations: 12 kB / 459 MB, free: 4.777 MB / 330.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.004391/0.5532, allocations: 1.076 MB / 460.1 MB, free: 3.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.5533, allocations: 8.031 kB / 460.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004623/0.5537, allocations: 75.14 kB / 460.2 MB, free: 3.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009703/0.5547, allocations: 426.6 kB / 460.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.302e-05/0.5548, allocations: 42.38 kB / 460.6 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.555, allocations: 53.75 kB / 460.7 MB, free: 3.168 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001955/0.557, allocations: 0.7271 MB / 461.4 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.557, allocations: 4 kB / 461.4 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.5572, allocations: 24.67 kB / 461.4 MB, free: 2.598 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.5572, allocations: 16 kB / 461.5 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001891/0.5591, allocations: 0.5996 MB / 462.1 MB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008628/0.5678, allocations: 3.173 MB / 465.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.5699, allocations: 0.6788 MB / 465.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.571, allocations: 306.4 kB / 466.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.315e-05/0.5711, allocations: 24.48 kB / 466.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009339/0.572, allocations: 317.4 kB / 466.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 4.218e-06/0.5721, allocations: 0 / 466.5 MB, free: 13.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001676/0.5738, allocations: 0.511 MB / 467.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.5739, allocations: 269.4 kB / 467.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008832/0.5748, allocations: 431.8 kB / 467.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.575, allocations: 37.7 kB / 467.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.5754, allocations: 382.1 kB / 468.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.5757, allocations: 173.6 kB / 468.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-05/0.5758, allocations: 12 kB / 468.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5759, allocations: 334.8 kB / 468.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007913/0.5767, allocations: 257.5 kB / 468.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.5778, allocations: 0.4953 MB / 469.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008683/0.5787, allocations: 325.3 kB / 469.7 MB, free: 9.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.5787, allocations: 11.94 kB / 469.7 MB, free: 9.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002406/0.5811, allocations: 0.8067 MB / 470.5 MB, free: 9.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.31e-05/0.5813, allocations: 59.41 kB / 470.6 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.5813, allocations: 8 kB / 470.6 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.953e-05/0.5814, allocations: 16 kB / 470.6 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.5836, allocations: 251.9 kB / 470.9 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.609e-05/0.5837, allocations: 15.95 kB / 470.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002271/0.586, allocations: 219 kB / 471.1 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/0.5863, allocations: 35.98 kB / 471.1 MB, free: 8.516 MB / 346.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.0003179/0.5866, allocations: 152.7 kB / 471.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.5868, allocations: 55.34 kB / 471.3 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.5871, allocations: 65.36 kB / 471.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.5871, allocations: 8 kB / 471.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.5872, allocations: 0 / 471.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.5872, allocations: 3.953 kB / 471.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.5907, allocations: 1.381 MB / 472.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.5908, allocations: 3.953 kB / 472.8 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/0.5925, allocations: 179.8 kB / 473 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-05/0.5925, allocations: 4 kB / 473 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.5926, allocations: 15.98 kB / 473 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.5927, allocations: 0 / 473 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.5927, allocations: 0 / 473 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.5952, allocations: 0.8965 MB / 473.9 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.5955, allocations: 148.3 kB / 474 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/0.5958, allocations: 12 kB / 474 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.5974, allocations: 143.9 kB / 474.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.5977, allocations: 52.36 kB / 474.2 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.5978, allocations: 11.98 kB / 474.2 MB, free: 5.305 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006427/0.5984, allocations: 325.6 kB / 474.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5984, allocations: 0 / 474.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009397/0.5994, allocations: 183.7 kB / 474.7 MB, free: 4.809 MB / 346.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.0002773/0.5997, allocations: 115.2 kB / 474.9 MB, free: 4.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.6017, allocations: 0.7193 MB / 475.6 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6018, allocations: 0 / 475.6 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008141/0.6026, allocations: 278.4 kB / 475.8 MB, free: 3.668 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008206/0.6034, allocations: 79.48 kB / 475.9 MB, free: 3.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.6063, allocations: 0.8841 MB / 476.8 MB, free: 2.676 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.6069, allocations: 0.8709 MB / 477.7 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005934/0.6075, allocations: 55.42 kB / 477.7 MB, free: 1.723 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6075, allocations: 0 / 477.7 MB, free: 1.723 MB / 346.7 MB Notification: Performance of Templates: time 0.02103/0.6285, allocations: 8.379 MB / 486.1 MB, free: 9.34 MB / 362.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