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.001213/0.001213, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009694/0.0009694, allocations: 165.8 kB / 24.82 MB, free: 9.266 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 1.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.684e-06/1.684e-06, allocations: 0 / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.343e-05/1.511e-05, allocations: 6.25 kB / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003747/0.003762, allocations: 4.096 MB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.005354, allocations: 1.195 MB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.005599, allocations: 15.94 kB / 278.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.005804, allocations: 110.8 kB / 278.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.006082, allocations: 194.1 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.006633, allocations: 339.5 kB / 279.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007515/0.007385, allocations: 1.12 MB / 280.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.007626, allocations: 187.1 kB / 280.6 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005558/0.008182, allocations: 0.6044 MB / 281.3 MB, free: 9.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.008544, allocations: 363 kB / 281.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.008657, allocations: 120 kB / 281.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.008761, allocations: 116 kB / 281.8 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.008878, allocations: 227.3 kB / 282.1 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.009088, allocations: 319.3 kB / 282.4 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008117/0.0099, allocations: 0.7244 MB / 283.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.009902, allocations: 0 / 283.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.009903, allocations: 0 / 283.1 MB, free: 7.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.009912, allocations: 0 / 283.1 MB, free: 7.527 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.001447/0.01136, allocations: 1.232 MB / 284.3 MB, free: 6.242 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.0114, allocations: 12.03 kB / 284.3 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.01153, allocations: 136.4 kB / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.01191, allocations: 426.1 kB / 284.9 MB, free: 5.652 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.01194, allocations: 41.69 kB / 284.9 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.01201, allocations: 64.38 kB / 285 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008595/0.01287, allocations: 0.9961 MB / 286 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.01288, allocations: 192 / 286 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.01293, allocations: 28.38 kB / 286 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.01294, allocations: 19.94 kB / 286 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.01333, allocations: 286.6 kB / 286.3 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.01574, allocations: 3.065 MB / 289.4 MB, free: 0.875 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.01626, allocations: 353.1 kB / 289.7 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.01648, allocations: 172.2 kB / 289.9 MB, free: 356 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.01652, allocations: 20.48 kB / 289.9 MB, free: 336 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005341/0.01705, allocations: 231.7 kB / 290.1 MB, free: 88 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.853e-06/0.01705, allocations: 0 / 290.1 MB, free: 88 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1234/0.1404, allocations: 441.5 kB / 290.6 MB, free: 26.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/0.1405, allocations: 374.5 kB / 290.9 MB, free: 26.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/0.1409, allocations: 0.5126 MB / 291.4 MB, free: 25.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.828e-05/0.141, allocations: 38.98 kB / 291.5 MB, free: 25.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.1412, allocations: 427.9 kB / 291.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1414, allocations: 178.2 kB / 292.1 MB, free: 25.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.1416, allocations: 154.4 kB / 292.2 MB, free: 25.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1417, allocations: 0.5444 MB / 292.8 MB, free: 24.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.1419, allocations: 161.2 kB / 292.9 MB, free: 24.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.1424, allocations: 0.852 MB / 293.8 MB, free: 23.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004919/0.1429, allocations: 0.5755 MB / 294.4 MB, free: 23.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1429, allocations: 2.25 kB / 294.4 MB, free: 23.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000804/0.1437, allocations: 0.6755 MB / 295 MB, free: 23.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.1437, allocations: 70.44 kB / 295.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1437, allocations: 6.875 kB / 295.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/0.1438, allocations: 9.828 kB / 295.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.1443, allocations: 194.2 kB / 295.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.1444, allocations: 17.8 kB / 295.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.1448, allocations: 136.2 kB / 295.5 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.1449, allocations: 24.56 kB / 295.5 MB, free: 23.28 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.0002089/0.1451, allocations: 215.2 kB / 295.7 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1452, allocations: 85.73 kB / 295.8 MB, free: 23.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1453, allocations: 71.22 kB / 295.8 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.1453, allocations: 6.672 kB / 295.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.1453, allocations: 0.75 kB / 295.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.1453, allocations: 2.25 kB / 295.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1465, allocations: 0.9464 MB / 296.8 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1465, allocations: 0 / 296.8 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.1469, allocations: 127.2 kB / 296.9 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1469, allocations: 2.281 kB / 296.9 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.1469, allocations: 13.16 kB / 296.9 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.1469, allocations: 3.156 kB / 296.9 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1469, allocations: 0 / 296.9 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007086/0.1476, allocations: 0.6167 MB / 297.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.1477, allocations: 74.12 kB / 297.6 MB, free: 22.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.1477, allocations: 13.22 kB / 297.6 MB, free: 22.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.148, allocations: 61.31 kB / 297.7 MB, free: 22.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.1481, allocations: 47.78 kB / 297.8 MB, free: 22.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.1481, allocations: 14.08 kB / 297.8 MB, free: 22.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.1483, allocations: 313.2 kB / 298.1 MB, free: 22.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1483, allocations: 1.094 kB / 298.1 MB, free: 22.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004427/0.1488, allocations: 184.1 kB / 298.3 MB, free: 22.32 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.0001081/0.1489, allocations: 123.2 kB / 298.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.1495, allocations: 0.5363 MB / 298.9 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1495, allocations: 3.812 kB / 298.9 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.1497, allocations: 169.2 kB / 299.1 MB, free: 21.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.1501, allocations: 122 kB / 299.2 MB, free: 21.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.1514, allocations: 1.039 MB / 300.2 MB, free: 21.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.687e-05/0.1515, allocations: 129.1 kB / 300.4 MB, free: 21.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.1518, allocations: 79.06 kB / 300.4 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.1521, allocations: 237.6 kB / 300.7 MB, free: 21.26 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1521, allocations: 4 kB / 300.7 MB, free: 21.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01037/0.1625, allocations: 9.423 MB / 310.1 MB, free: 16.28 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: 2.953545451629907]