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.0009684/0.0009684, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001024/0.001024, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9906/0.9906, allocations: 177.1 MB / 205 MB, free: 5.629 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.583e-06/1.583e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.55e-05/2.708e-05, allocations: 6.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004537/0.004564, allocations: 4.167 MB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.006221, allocations: 1.203 MB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.006405, allocations: 12 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.006603, allocations: 106.9 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.006844, allocations: 194.1 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.007343, allocations: 343.5 kB / 279 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007809/0.008123, allocations: 1.12 MB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.008381, allocations: 175.1 kB / 280.3 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.008877, allocations: 0.6083 MB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003604/0.009238, allocations: 367 kB / 281.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.009352, allocations: 116 kB / 281.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.00946, allocations: 124 kB / 281.5 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.009608, allocations: 231.3 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.009849, allocations: 315.3 kB / 282 MB, free: 8.453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005881/0.01044, allocations: 0.7166 MB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.01044, allocations: 4 kB / 282.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01044, allocations: 0 / 282.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.01045, allocations: 0 / 282.7 MB, free: 7.73 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.001514/0.01196, allocations: 1.224 MB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.01202, allocations: 8.031 kB / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.01219, allocations: 140.4 kB / 284.1 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.01269, allocations: 426.1 kB / 284.5 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.911e-05/0.01275, allocations: 41.69 kB / 284.6 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.01288, allocations: 68.38 kB / 284.6 MB, free: 5.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.01404, allocations: 1.039 MB / 285.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.01406, allocations: 192 / 285.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.01411, allocations: 28.38 kB / 285.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.01413, allocations: 19.94 kB / 285.7 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000563/0.0147, allocations: 361.6 kB / 286.1 MB, free: 4.156 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/0.01738, allocations: 3.05 MB / 289.1 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.01809, allocations: 396 kB / 289.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.01842, allocations: 205.1 kB / 289.7 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.01847, allocations: 16.48 kB / 289.7 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/0.01883, allocations: 259.7 kB / 290 MB, free: 96 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.01883, allocations: 0 / 290 MB, free: 96 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1347/0.1535, allocations: 0.4939 MB / 290.5 MB, free: 26.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.1536, allocations: 374.4 kB / 290.8 MB, free: 26.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000464/0.1541, allocations: 0.5242 MB / 291.4 MB, free: 25.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.1541, allocations: 39.2 kB / 291.4 MB, free: 25.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.1543, allocations: 422.8 kB / 291.8 MB, free: 25.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1544, allocations: 178.5 kB / 292 MB, free: 25.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.1546, allocations: 147.7 kB / 292.1 MB, free: 25.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1547, allocations: 0.5395 MB / 292.7 MB, free: 24.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.155, allocations: 198.5 kB / 292.9 MB, free: 24.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004724/0.1554, allocations: 0.8786 MB / 293.7 MB, free: 24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.1561, allocations: 0.6191 MB / 294.4 MB, free: 23.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.1561, allocations: 1.219 kB / 294.4 MB, free: 23.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009583/0.157, allocations: 0.7395 MB / 295.1 MB, free: 23.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.713e-05/0.1571, allocations: 69.89 kB / 295.2 MB, free: 23.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.1571, allocations: 7.375 kB / 295.2 MB, free: 23.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.298e-05/0.1571, allocations: 11.06 kB / 295.2 MB, free: 23.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.1577, allocations: 196.8 kB / 295.4 MB, free: 23.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.1577, allocations: 15.72 kB / 295.4 MB, free: 23.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/0.1582, allocations: 133.7 kB / 295.5 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.1582, allocations: 31.44 kB / 295.6 MB, free: 23.3 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.000162/0.1584, allocations: 214.2 kB / 295.8 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.1585, allocations: 85.78 kB / 295.9 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.093e-05/0.1586, allocations: 69.72 kB / 295.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1586, allocations: 5.812 kB / 295.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.1586, allocations: 0.7969 kB / 295.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.1586, allocations: 2.156 kB / 295.9 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.1599, allocations: 1.063 MB / 297 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1599, allocations: 0 / 297 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.1603, allocations: 120.4 kB / 297.1 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1603, allocations: 1.812 kB / 297.1 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.1603, allocations: 18.53 kB / 297.1 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.1603, allocations: 2.281 kB / 297.1 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1603, allocations: 0.7969 kB / 297.1 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008826/0.1612, allocations: 0.6807 MB / 297.8 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-05/0.1613, allocations: 69.41 kB / 297.9 MB, free: 22.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.025e-05/0.1614, allocations: 18.52 kB / 297.9 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.1616, allocations: 61.86 kB / 298 MB, free: 22.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.1617, allocations: 48.05 kB / 298 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.1618, allocations: 19.52 kB / 298 MB, free: 22.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002911/0.1621, allocations: 336 kB / 298.4 MB, free: 22.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1621, allocations: 0 / 298.4 MB, free: 22.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004562/0.1625, allocations: 188.8 kB / 298.5 MB, free: 22.14 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.0001163/0.1626, allocations: 117.3 kB / 298.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007871/0.1634, allocations: 0.5937 MB / 299.3 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1634, allocations: 1.438 kB / 299.3 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.1637, allocations: 194.5 kB / 299.4 MB, free: 21.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.1642, allocations: 116 kB / 299.6 MB, free: 21.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1657, allocations: 1.052 MB / 300.6 MB, free: 21.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.786e-05/0.1658, allocations: 128.5 kB / 300.7 MB, free: 21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.1661, allocations: 80.28 kB / 300.8 MB, free: 20.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.1662, allocations: 52.72 kB / 300.9 MB, free: 20.96 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1662, allocations: 4 kB / 300.9 MB, free: 20.96 MB / 266.7 MB Notification: Performance of Templates: time 0.01018/0.1764, allocations: 8.776 MB / 309.6 MB, free: 16.32 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.2447069669142365]