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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 95.86 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 149.1 kB / 24.26 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 173.3 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.379e-05/3.562e-05, allocations: 6.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006426/0.006462, allocations: 4.105 MB / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002743/0.009205, allocations: 1.168 MB / 272.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.009554, allocations: 15.94 kB / 272.6 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.009869, allocations: 106.9 kB / 272.7 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004582/0.01033, allocations: 198.1 kB / 272.9 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008112/0.01114, allocations: 335.5 kB / 273.2 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.01251, allocations: 1.116 MB / 274.4 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003951/0.01291, allocations: 187.1 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009413/0.01385, allocations: 0.6084 MB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.0144, allocations: 363.1 kB / 275.5 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.01458, allocations: 116 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.01477, allocations: 120 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.01503, allocations: 231.3 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004039/0.01543, allocations: 319.3 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.0172, allocations: 1.313 MB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.0172, allocations: 0 / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.0172, allocations: 0 / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.01722, allocations: 0 / 277.6 MB, free: 12.39 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.002871/0.02009, allocations: 1.279 MB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.02013, allocations: 12.92 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.02039, allocations: 132.4 kB / 279 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007472/0.02114, allocations: 430.2 kB / 279.4 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.02119, allocations: 45.69 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.02132, allocations: 64.38 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.0236, allocations: 1.285 MB / 280.8 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.02362, allocations: 192 / 280.8 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.33e-05/0.0237, allocations: 28.38 kB / 280.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.02372, allocations: 23.92 kB / 280.9 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002395/0.02612, allocations: 0.8549 MB / 281.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/0.03182, allocations: 3.569 MB / 285.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.03378, allocations: 0.6596 MB / 286 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.03484, allocations: 377 kB / 286.3 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-05/0.0349, allocations: 20.48 kB / 286.3 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.03596, allocations: 423.7 kB / 286.8 MB, free: 2.812 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.994e-06/0.03596, allocations: 0 / 286.8 MB, free: 2.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002758/0.03872, allocations: 0.9728 MB / 287.7 MB, free: 1.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002755/0.039, allocations: 376.3 kB / 288.1 MB, free: 1.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009635/0.03996, allocations: 0.6977 MB / 288.8 MB, free: 0.668 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.04003, allocations: 41.7 kB / 288.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004147/0.04044, allocations: 463.1 kB / 289.3 MB, free: 168 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1055/0.1459, allocations: 184.1 kB / 289.5 MB, free: 32.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003286/0.1462, allocations: 174.2 kB / 289.6 MB, free: 32.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1464, allocations: 0.5863 MB / 290.2 MB, free: 31.83 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009304/0.1473, allocations: 404.4 kB / 290.6 MB, free: 31.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.1484, allocations: 1.115 MB / 291.7 MB, free: 30.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.1501, allocations: 0.9864 MB / 292.7 MB, free: 30.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1501, allocations: 2.25 kB / 292.7 MB, free: 30.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002333/0.1524, allocations: 1.118 MB / 293.8 MB, free: 30.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.1524, allocations: 69.3 kB / 293.9 MB, free: 30.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.1525, allocations: 5.781 kB / 293.9 MB, free: 30.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.1525, allocations: 10.12 kB / 293.9 MB, free: 30.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009052/0.1534, allocations: 194.8 kB / 294.1 MB, free: 30.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.1534, allocations: 18.89 kB / 294.1 MB, free: 30.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007872/0.1542, allocations: 120.1 kB / 294.2 MB, free: 30.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.1543, allocations: 34.45 kB / 294.3 MB, free: 30.05 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.0002895/0.1546, allocations: 273.1 kB / 294.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.1547, allocations: 84.17 kB / 294.6 MB, free: 29.81 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.1549, allocations: 68.42 kB / 294.7 MB, free: 29.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.1549, allocations: 5.031 kB / 294.7 MB, free: 29.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1549, allocations: 8.469 kB / 294.7 MB, free: 29.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.1549, allocations: 3.781 kB / 294.7 MB, free: 29.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.1577, allocations: 1.531 MB / 296.2 MB, free: 29.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1577, allocations: 3.5 kB / 296.2 MB, free: 29.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/0.1584, allocations: 117.9 kB / 296.4 MB, free: 29.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1584, allocations: 6.5 kB / 296.4 MB, free: 29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.571e-05/0.1584, allocations: 10.34 kB / 296.4 MB, free: 29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1584, allocations: 1.438 kB / 296.4 MB, free: 29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1585, allocations: 4.344 kB / 296.4 MB, free: 29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/0.161, allocations: 1.222 MB / 297.6 MB, free: 28.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1611, allocations: 73.62 kB / 297.7 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.954e-05/0.1612, allocations: 13.25 kB / 297.7 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005535/0.1618, allocations: 52.98 kB / 297.7 MB, free: 28.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.1619, allocations: 57.05 kB / 297.8 MB, free: 28.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.162, allocations: 20.39 kB / 297.8 MB, free: 28.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005015/0.1625, allocations: 439.8 kB / 298.2 MB, free: 28.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1625, allocations: 0 / 298.2 MB, free: 28.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006406/0.1631, allocations: 182.2 kB / 298.4 MB, free: 28.13 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.0001519/0.1633, allocations: 120.4 kB / 298.5 MB, free: 28.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.1653, allocations: 0.9754 MB / 299.5 MB, free: 27.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1653, allocations: 1.156 kB / 299.5 MB, free: 27.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008257/0.1662, allocations: 377.9 kB / 299.9 MB, free: 27.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006106/0.1668, allocations: 121.2 kB / 300 MB, free: 27.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.1689, allocations: 1.196 MB / 301.2 MB, free: 26.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.1692, allocations: 281.2 kB / 301.5 MB, free: 26.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003974/0.1696, allocations: 84.2 kB / 301.6 MB, free: 26.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002195/0.1698, allocations: 56.34 kB / 301.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of SimCode: time 1.233e-06/0.1698, allocations: 1.375 kB / 301.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of Templates: time 0.01296/0.1828, allocations: 8.724 MB / 310.3 MB, free: 19.86 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6809368670219555]