Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 161.3 kB / 24.99 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9534/0.9534, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.863e-05, allocations: 6.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003949/0.003978, allocations: 4.144 MB / 277.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.005774, allocations: 1.203 MB / 278.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.00598, allocations: 11.94 kB / 278.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.006172, allocations: 114.8 kB / 278.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.006402, allocations: 194.1 kB / 278.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.006891, allocations: 335.5 kB / 279.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007664/0.007657, allocations: 1.116 MB / 280.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.007955, allocations: 187.1 kB / 280.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004511/0.008406, allocations: 0.6044 MB / 281 MB, free: 9.898 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.008756, allocations: 363 kB / 281.3 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.008872, allocations: 120 kB / 281.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.256e-05/0.008965, allocations: 120 kB / 281.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.00909, allocations: 231.3 kB / 281.8 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.009308, allocations: 319.3 kB / 282.1 MB, free: 8.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005757/0.009883, allocations: 0.7205 MB / 282.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.009887, allocations: 0 / 282.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.009888, allocations: 0 / 282.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.009896, allocations: 0 / 282.8 MB, free: 8.047 MB / 266.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.001512/0.01141, allocations: 1.22 MB / 284 MB, free: 6.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.01145, allocations: 12.03 kB / 284 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.01162, allocations: 132.4 kB / 284.2 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.01209, allocations: 430.1 kB / 284.6 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/0.01213, allocations: 45.69 kB / 284.6 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.329e-05/0.01221, allocations: 68.38 kB / 284.7 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.0135, allocations: 1.039 MB / 285.7 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.01351, allocations: 192 / 285.7 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.01357, allocations: 28.38 kB / 285.8 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.01359, allocations: 19.94 kB / 285.8 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/0.01418, allocations: 357.6 kB / 286.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002516/0.0167, allocations: 3.054 MB / 289.2 MB, free: 1.297 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006646/0.01736, allocations: 397.1 kB / 289.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.01768, allocations: 197.1 kB / 289.8 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.01772, allocations: 16.47 kB / 289.8 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003456/0.01807, allocations: 259.8 kB / 290 MB, free: 424 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.683e-06/0.01807, allocations: 0 / 290 MB, free: 424 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1017/0.1198, allocations: 0.5021 MB / 290.6 MB, free: 28.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.1199, allocations: 373.6 kB / 290.9 MB, free: 27.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005032/0.1204, allocations: 0.5171 MB / 291.4 MB, free: 27.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.294e-05/0.1204, allocations: 41.77 kB / 291.5 MB, free: 27.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.1206, allocations: 425.5 kB / 291.9 MB, free: 27.44 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1207, allocations: 175.3 kB / 292.1 MB, free: 27.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.1209, allocations: 143.6 kB / 292.2 MB, free: 27.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.121, allocations: 0.5383 MB / 292.7 MB, free: 26.83 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.1213, allocations: 199 kB / 292.9 MB, free: 26.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/0.1217, allocations: 0.8793 MB / 293.8 MB, free: 25.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005881/0.1223, allocations: 0.6227 MB / 294.4 MB, free: 25.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1223, allocations: 2.281 kB / 294.4 MB, free: 25.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009583/0.1233, allocations: 0.7387 MB / 295.2 MB, free: 25.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.1233, allocations: 71.19 kB / 295.2 MB, free: 25.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1233, allocations: 10.38 kB / 295.3 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.1233, allocations: 14.09 kB / 295.3 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005251/0.1238, allocations: 187.4 kB / 295.5 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1239, allocations: 16.62 kB / 295.5 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.1243, allocations: 129.4 kB / 295.6 MB, free: 25.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.1243, allocations: 35.12 kB / 295.6 MB, free: 25.12 MB / 266.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 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.1245, allocations: 212.2 kB / 295.8 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.108e-05/0.1246, allocations: 85.53 kB / 295.9 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.45e-05/0.1247, allocations: 70.84 kB / 296 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1247, allocations: 8.938 kB / 296 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1247, allocations: 0 / 296 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1247, allocations: 5.875 kB / 296 MB, free: 24.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.1261, allocations: 1.054 MB / 297.1 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1261, allocations: 3.062 kB / 297.1 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004072/0.1265, allocations: 118.6 kB / 297.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.1265, allocations: 3.094 kB / 297.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.1265, allocations: 17.2 kB / 297.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.1265, allocations: 4.703 kB / 297.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1265, allocations: 0.9375 kB / 297.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008948/0.1274, allocations: 0.6888 MB / 297.9 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.1275, allocations: 68.02 kB / 298 MB, free: 24.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.405e-05/0.1275, allocations: 13.3 kB / 298 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.1278, allocations: 60.52 kB / 298 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/0.1279, allocations: 48.38 kB / 298.1 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.1279, allocations: 20.31 kB / 298.1 MB, free: 24.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002487/0.1282, allocations: 334.7 kB / 298.4 MB, free: 23.85 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1282, allocations: 2.781 kB / 298.4 MB, free: 23.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004737/0.1287, allocations: 186.2 kB / 298.6 MB, free: 23.81 MB / 266.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001155/0.1288, allocations: 112.8 kB / 298.7 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007987/0.1296, allocations: 0.5966 MB / 299.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1296, allocations: 0.9375 kB / 299.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.1299, allocations: 191 kB / 299.5 MB, free: 23.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.1303, allocations: 120.1 kB / 299.6 MB, free: 23.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.1318, allocations: 1.053 MB / 300.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.32e-05/0.1319, allocations: 129.6 kB / 300.8 MB, free: 22.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.1322, allocations: 78.48 kB / 300.9 MB, free: 22.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.1323, allocations: 58.06 kB / 300.9 MB, free: 22.63 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1323, allocations: 0 / 300.9 MB, free: 22.63 MB / 266.7 MB Notification: Performance of Templates: time 0.009781/0.1421, allocations: 8.768 MB / 309.7 MB, free: 17.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.020075734006241]