Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 185.6 kB / 8.139 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.205/1.205, allocations: 221.4 MB / 229.9 MB, free: 3.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008858, allocations: 92.77 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.938e-06/9.958e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.1992, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08549/0.2847, allocations: 81.72 MB / 468.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001734/0.2849, allocations: 79.89 kB / 468.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03086/0.3158, allocations: 11.23 MB / 479.9 MB, free: 9.754 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.167e-05/0.3159, allocations: 12 kB / 479.9 MB, free: 9.742 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002757/0.3186, allocations: 1.159 MB / 481.1 MB, free: 8.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3187, allocations: 12.03 kB / 481.1 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3189, allocations: 82.97 kB / 481.2 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.3196, allocations: 493.9 kB / 481.7 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.3197, allocations: 20 kB / 481.7 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.3198, allocations: 40 kB / 481.7 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001116/0.3209, allocations: 0.5813 MB / 482.3 MB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.322, allocations: 0.6924 MB / 483 MB, free: 6.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.322, allocations: 4.938 kB / 483 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.3221, allocations: 3.984 kB / 483 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.3221, allocations: 16 kB / 483 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004843/0.327, allocations: 3.221 MB / 486.3 MB, free: 3.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.3277, allocations: 439.9 kB / 486.7 MB, free: 2.707 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.3281, allocations: 252.9 kB / 486.9 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.135e-05/0.3281, allocations: 16.41 kB / 486.9 MB, free: 2.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004699/0.3286, allocations: 304.4 kB / 487.2 MB, free: 2.137 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.554e-06/0.3286, allocations: 4 kB / 487.2 MB, free: 2.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008962/0.3295, allocations: 494.4 kB / 487.7 MB, free: 1.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.3297, allocations: 376.3 kB / 488.1 MB, free: 1.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/0.3302, allocations: 422.1 kB / 488.5 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.3303, allocations: 33.69 kB / 488.5 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.3304, allocations: 307.4 kB / 488.8 MB, free: 432 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.3306, allocations: 157.7 kB / 489 MB, free: 272 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-05/0.3306, allocations: 0 / 489 MB, free: 272 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.3308, allocations: 378.7 kB / 489.4 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.3312, allocations: 241.5 kB / 489.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.3318, allocations: 0.5059 MB / 490.1 MB, free: 15.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004253/0.3323, allocations: 266.8 kB / 490.4 MB, free: 14.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3323, allocations: 0 / 490.4 MB, free: 14.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001185/0.3335, allocations: 0.7052 MB / 491.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3335, allocations: 8 kB / 491.1 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3335, allocations: 4.844 kB / 491.1 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.3335, allocations: 12 kB / 491.1 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.3347, allocations: 279.6 kB / 491.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.3348, allocations: 19.92 kB / 491.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3359, allocations: 231 kB / 491.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.065e-05/0.336, allocations: 28 kB / 491.6 MB, free: 13.48 MB / 378.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.0001696/0.3361, allocations: 136.7 kB / 491.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/0.3362, allocations: 63.91 kB / 491.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.3364, allocations: 65.72 kB / 491.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.3364, allocations: 11.91 kB / 491.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.3364, allocations: 0 / 491.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3365, allocations: 0 / 491.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006758/0.3371, allocations: 0.6462 MB / 492.6 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3371, allocations: 4 kB / 492.6 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009322/0.3381, allocations: 200.5 kB / 492.8 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.3381, allocations: 0 / 492.8 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.527e-05/0.3382, allocations: 11.92 kB / 492.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3382, allocations: 4 kB / 492.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3382, allocations: 0 / 492.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001311/0.3395, allocations: 0.8077 MB / 493.6 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.3396, allocations: 148.2 kB / 493.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.3397, allocations: 4.062 kB / 493.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008617/0.3406, allocations: 168.8 kB / 493.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.3407, allocations: 44.36 kB / 493.9 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/0.3408, allocations: 19.98 kB / 494 MB, free: 11.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003286/0.3411, allocations: 315 kB / 494.3 MB, free: 10.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005193/0.3417, allocations: 159.6 kB / 494.4 MB, free: 10.61 MB / 378.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.0001758/0.3418, allocations: 115.2 kB / 494.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009841/0.3428, allocations: 0.6407 MB / 495.2 MB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3429, allocations: 0 / 495.2 MB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004328/0.3433, allocations: 269.6 kB / 495.4 MB, free: 9.578 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.3437, allocations: 78.67 kB / 495.5 MB, free: 9.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.3456, allocations: 0.9179 MB / 496.4 MB, free: 8.551 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.3463, allocations: 0.9598 MB / 497.4 MB, free: 7.562 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3463, allocations: 0 / 497.4 MB, free: 7.562 MB / 378.7 MB Notification: Performance of Templates: time 0.1113/0.4577, allocations: 8.826 MB / 0.4944 GB, free: 134.7 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches