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.001006/0.001006, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001067/0.001067, allocations: 173.1 kB / 24.91 MB, free: 8.258 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.9333/0.9333, allocations: 177.1 MB / 205.3 MB, free: 5.492 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 1.713e-06/1.713e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.865e-05/2.036e-05, allocations: 9.062 kB / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003658/0.003678, allocations: 4.143 MB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.005659, allocations: 1.245 MB / 278.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.005894, allocations: 15.94 kB / 278.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001882/0.006082, allocations: 106.8 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.006354, allocations: 190.2 kB / 279.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.006879, allocations: 343.5 kB / 279.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008149/0.007694, allocations: 1.124 MB / 280.7 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.007931, allocations: 189 kB / 280.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005463/0.008478, allocations: 0.6083 MB / 281.4 MB, free: 9.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.008813, allocations: 367 kB / 281.8 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.008918, allocations: 116 kB / 281.9 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.904e-05/0.009007, allocations: 120 kB / 282 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.009132, allocations: 231.3 kB / 282.3 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.009346, allocations: 319.3 kB / 282.6 MB, free: 8.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.009882, allocations: 0.7244 MB / 283.3 MB, free: 7.406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.009885, allocations: 0 / 283.3 MB, free: 7.406 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.009885, allocations: 0 / 283.3 MB, free: 7.406 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.009894, allocations: 0 / 283.3 MB, free: 7.406 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.001237/0.01113, allocations: 1.103 MB / 284.4 MB, free: 6.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.01116, allocations: 11.97 kB / 284.4 MB, free: 6.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.01129, allocations: 104.8 kB / 284.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.01162, allocations: 303.5 kB / 284.8 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.01165, allocations: 45.67 kB / 284.9 MB, free: 5.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.528e-05/0.01174, allocations: 64.38 kB / 284.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008525/0.01259, allocations: 0.9581 MB / 285.9 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.0126, allocations: 192 / 285.9 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.01264, allocations: 28.38 kB / 285.9 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.01265, allocations: 19.94 kB / 285.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.01297, allocations: 238.8 kB / 286.2 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.01513, allocations: 2.269 MB / 288.4 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.01563, allocations: 312.4 kB / 288.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.01583, allocations: 157.6 kB / 288.9 MB, free: 1.508 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.01586, allocations: 16.48 kB / 288.9 MB, free: 1.492 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.0162, allocations: 230.1 kB / 289.1 MB, free: 1.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.0162, allocations: 0 / 289.1 MB, free: 1.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.000447/0.01664, allocations: 334 kB / 289.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.01675, allocations: 372.3 kB / 289.8 MB, free: 488 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.01724, allocations: 466.9 kB / 290.3 MB, free: 8 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1036/0.1208, allocations: 39.98 kB / 290.3 MB, free: 26.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.1211, allocations: 328.2 kB / 290.6 MB, free: 26.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1212, allocations: 172.7 kB / 290.8 MB, free: 26.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.1214, allocations: 142.2 kB / 290.9 MB, free: 26.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.408e-05/0.1215, allocations: 377 kB / 291.3 MB, free: 25.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1216, allocations: 147.3 kB / 291.4 MB, free: 25.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/0.1219, allocations: 0.7251 MB / 292.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004171/0.1224, allocations: 0.5048 MB / 292.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.1224, allocations: 1.812 kB / 292.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006239/0.123, allocations: 0.5526 MB / 293.2 MB, free: 24.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.123, allocations: 66.92 kB / 293.3 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.123, allocations: 8.062 kB / 293.3 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.1231, allocations: 9.969 kB / 293.3 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.1236, allocations: 206.4 kB / 293.5 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1236, allocations: 15.12 kB / 293.5 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.124, allocations: 132.6 kB / 293.7 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.124, allocations: 25.98 kB / 293.7 MB, free: 24.55 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.0001361/0.1242, allocations: 167.7 kB / 293.8 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.1242, allocations: 56.27 kB / 293.9 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.455e-05/0.1243, allocations: 71.42 kB / 294 MB, free: 24.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1243, allocations: 9.281 kB / 294 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.1243, allocations: 1.812 kB / 294 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1243, allocations: 2.297 kB / 294 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009235/0.1252, allocations: 0.6894 MB / 294.7 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1252, allocations: 0 / 294.7 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003546/0.1256, allocations: 134.8 kB / 294.8 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1256, allocations: 1.312 kB / 294.8 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.1256, allocations: 9.344 kB / 294.8 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1256, allocations: 1.766 kB / 294.8 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1256, allocations: 4.938 kB / 294.8 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005326/0.1262, allocations: 486.9 kB / 295.3 MB, free: 24.05 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.1262, allocations: 58.3 kB / 295.4 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.1263, allocations: 13.5 kB / 295.4 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.1265, allocations: 66.61 kB / 295.4 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.744e-05/0.1266, allocations: 47.83 kB / 295.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1266, allocations: 11.28 kB / 295.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.1268, allocations: 197.3 kB / 295.7 MB, free: 24 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1268, allocations: 0 / 295.7 MB, free: 24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003702/0.1271, allocations: 182.7 kB / 295.9 MB, free: 23.98 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 9.649e-05/0.1272, allocations: 97.91 kB / 296 MB, free: 23.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.1277, allocations: 0.503 MB / 296.5 MB, free: 23.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/0.1277, allocations: 7.719 kB / 296.5 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.1279, allocations: 147.5 kB / 296.6 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.1282, allocations: 128.2 kB / 296.7 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.1294, allocations: 1.012 MB / 297.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.596e-05/0.1295, allocations: 129.6 kB / 297.9 MB, free: 23.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.1297, allocations: 78.31 kB / 298 MB, free: 23.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.13, allocations: 205 kB / 298.2 MB, free: 23 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.13, allocations: 1.375 kB / 298.2 MB, free: 23 MB / 266.7 MB Notification: Performance of Templates: time 0.009902/0.1399, allocations: 9.127 MB / 307.3 MB, free: 18.95 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 -s gbode -gbm=radauIIA3 -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: 2.824181363917887]