Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Electrical.Analog.Examples.NandGate") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009604/0.0009603, allocations: 179.7 kB / 8.48 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.164/1.164, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 90.25 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.983e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07754/0.07757, allocations: 47.58 MB / 362.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2476/0.3252, allocations: 78.86 MB / 441.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.3254, allocations: 71.48 kB / 441.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02577/0.3512, allocations: 10.09 MB / 451.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.3513, allocations: 11.66 kB / 451.6 MB, free: 8.473 MB / 314.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.002338/0.3536, allocations: 1.123 MB / 452.7 MB, free: 7.715 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3537, allocations: 11.69 kB / 452.7 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.3538, allocations: 73.78 kB / 452.8 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.3544, allocations: 424.4 kB / 453.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.3544, allocations: 15.5 kB / 453.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-05/0.3545, allocations: 38.38 kB / 453.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009646/0.3555, allocations: 0.5578 MB / 453.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008935/0.3564, allocations: 0.6493 MB / 454.5 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3564, allocations: 7.938 kB / 454.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.363e-05/0.3565, allocations: 3.688 kB / 454.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.3565, allocations: 19.19 kB / 454.5 MB, free: 7.062 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.3608, allocations: 3.108 MB / 457.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.3614, allocations: 427.7 kB / 458 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004304/0.3619, allocations: 257.6 kB / 458.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.325e-05/0.3619, allocations: 15.97 kB / 458.3 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000496/0.3624, allocations: 294.3 kB / 458.6 MB, free: 5.051 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.687e-06/0.3624, allocations: 0 / 458.6 MB, free: 5.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008856/0.3633, allocations: 489.3 kB / 459 MB, free: 4.953 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.707e-05/0.3634, allocations: 273.3 kB / 459.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00054/0.364, allocations: 400.7 kB / 459.7 MB, free: 4.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.102e-05/0.3641, allocations: 31.52 kB / 459.7 MB, free: 4.461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.3643, allocations: 290.2 kB / 460 MB, free: 4.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.3644, allocations: 159.5 kB / 460.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.081e-05/0.3645, allocations: 0 / 460.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3646, allocations: 371.5 kB / 460.5 MB, free: 3.777 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004673/0.3651, allocations: 245.1 kB / 460.8 MB, free: 3.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/0.3657, allocations: 485.4 kB / 461.2 MB, free: 3.457 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004658/0.3661, allocations: 271.3 kB / 461.5 MB, free: 3.406 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3662, allocations: 2.375 kB / 461.5 MB, free: 3.406 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001351/0.3675, allocations: 0.7068 MB / 462.2 MB, free: 3.254 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3675, allocations: 5.188 kB / 462.2 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.3676, allocations: 6.344 kB / 462.2 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.3676, allocations: 11.22 kB / 462.2 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.3689, allocations: 267.1 kB / 462.5 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.368e-05/0.369, allocations: 17.33 kB / 462.5 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.3703, allocations: 222.7 kB / 462.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.337e-05/0.3704, allocations: 31.25 kB / 462.8 MB, free: 3.086 MB / 314.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.000181/0.3705, allocations: 135.3 kB / 462.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3707, allocations: 59 kB / 463 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.3708, allocations: 57.94 kB / 463 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3708, allocations: 8.234 kB / 463 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.3709, allocations: 5.656 kB / 463 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3709, allocations: 3.984 kB / 463 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007098/0.3716, allocations: 0.6208 MB / 463.7 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3716, allocations: 0 / 463.7 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000931/0.3725, allocations: 205.4 kB / 463.9 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.3726, allocations: 6.234 kB / 463.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.3726, allocations: 3.844 kB / 463.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3726, allocations: 1.344 kB / 463.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3726, allocations: 1.344 kB / 463.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001655/0.3743, allocations: 0.8084 MB / 464.7 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.3744, allocations: 137.9 kB / 464.8 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.3746, allocations: 5.438 kB / 464.8 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008797/0.3755, allocations: 159 kB / 465 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.3756, allocations: 51.05 kB / 465 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.3757, allocations: 13.19 kB / 465 MB, free: 2.156 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003848/0.3761, allocations: 298.6 kB / 465.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006437/0.3767, allocations: 153.1 kB / 465.5 MB, free: 2.031 MB / 314.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 (VIN2.signalSource.count,VIN1.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.0002044/0.3769, allocations: 111.8 kB / 465.6 MB, free: 1.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.378, allocations: 0.6362 MB / 466.2 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.378, allocations: 1.375 kB / 466.2 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.3785, allocations: 281 kB / 466.5 MB, free: 1.812 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.3789, allocations: 66.84 kB / 466.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.3811, allocations: 0.8473 MB / 467.4 MB, free: 1.414 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007106/0.3819, allocations: 0.9356 MB / 468.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3819, allocations: 1.062 kB / 468.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of Templates: time 0.01665/0.3985, allocations: 8.489 MB / 476.8 MB, free: 11.56 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches