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.001282/0.001282, allocations: 78.19 kB / 21.42 MB, free: 3.082 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.004339/0.004339, allocations: 154 kB / 24.81 MB, free: 9.297 MB / 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.001/1.001, allocations: 173.3 MB / 201.4 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] 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.683e-06/1.683e-06, allocations: 0 / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.761e-05, allocations: 2.312 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004107/0.004135, allocations: 4.085 MB / 272.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.006221, allocations: 1.164 MB / 273.7 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003551/0.006576, allocations: 15.94 kB / 273.7 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.006801, allocations: 106.8 kB / 273.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003595/0.00716, allocations: 190.2 kB / 274 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.007785, allocations: 343.5 kB / 274.3 MB, free: 272 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009246/0.008709, allocations: 1.116 MB / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.008977, allocations: 191 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006897/0.009667, allocations: 0.6005 MB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006525/0.01032, allocations: 375 kB / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.01046, allocations: 116 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.01056, allocations: 120 kB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.01068, allocations: 227.3 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.01092, allocations: 323.3 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006354/0.01156, allocations: 0.7166 MB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.01156, allocations: 4 kB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01156, allocations: 0 / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.01157, allocations: 0 / 278.1 MB, free: 12.5 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.001326/0.0129, allocations: 1.224 MB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.01294, allocations: 8.922 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.01308, allocations: 140.4 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.01347, allocations: 414.2 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.0135, allocations: 49.69 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.01357, allocations: 64.38 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/0.01443, allocations: 1 MB / 280.9 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.01444, allocations: 4.125 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.382e-05/0.01449, allocations: 28.38 kB / 281 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.0145, allocations: 15.94 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003593/0.01486, allocations: 286.6 kB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.01759, allocations: 3.057 MB / 284.3 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.01811, allocations: 352.1 kB / 284.7 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.01833, allocations: 180.9 kB / 284.8 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.01836, allocations: 16.48 kB / 284.9 MB, free: 5.305 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.01862, allocations: 235.4 kB / 285.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.01862, allocations: 0 / 285.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0005656/0.01918, allocations: 444.5 kB / 285.5 MB, free: 4.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.01929, allocations: 376.3 kB / 285.9 MB, free: 4.168 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.0196, allocations: 0.5098 MB / 286.4 MB, free: 3.641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.01964, allocations: 41.7 kB / 286.4 MB, free: 3.594 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.01983, allocations: 431 kB / 286.9 MB, free: 3.164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.01994, allocations: 182.5 kB / 287 MB, free: 2.984 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.02009, allocations: 148.2 kB / 287.2 MB, free: 2.832 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.02025, allocations: 0.539 MB / 287.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.02042, allocations: 165.3 kB / 287.9 MB, free: 2.105 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.02085, allocations: 0.854 MB / 288.7 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.02133, allocations: 0.5726 MB / 289.3 MB, free: 300 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.02134, allocations: 3.938 kB / 289.3 MB, free: 296 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007022/0.02204, allocations: 0.6747 MB / 290 MB, free: 15.58 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.02208, allocations: 71.33 kB / 290.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.02209, allocations: 12.06 kB / 290.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.02211, allocations: 8 kB / 290.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007401/0.02285, allocations: 191.7 kB / 290.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.02286, allocations: 15.94 kB / 290.3 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003862/0.02324, allocations: 131.4 kB / 290.4 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.994e-05/0.02328, allocations: 28 kB / 290.4 MB, free: 15.12 MB / 282.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.0001715/0.02345, allocations: 208.4 kB / 290.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.234e-05/0.02354, allocations: 87.61 kB / 290.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.619e-05/0.02361, allocations: 61.89 kB / 290.8 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.02362, allocations: 11.94 kB / 290.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.02362, allocations: 0 / 290.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.02363, allocations: 7.984 kB / 290.8 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009806/0.02461, allocations: 0.9406 MB / 291.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.02461, allocations: 3.938 kB / 291.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.0249, allocations: 123.8 kB / 291.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.02491, allocations: 3.938 kB / 291.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.02493, allocations: 19.98 kB / 291.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.02493, allocations: 4 kB / 291.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.02493, allocations: 0 / 291.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006144/0.02555, allocations: 0.6073 MB / 292.5 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.407e-05/0.02561, allocations: 71.38 kB / 292.6 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.02566, allocations: 12 kB / 292.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.02589, allocations: 63.97 kB / 292.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.13e-05/0.02597, allocations: 52.41 kB / 292.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.02599, allocations: 8 kB / 292.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000169/0.02616, allocations: 318.7 kB / 293 MB, free: 12.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02616, allocations: 0 / 293 MB, free: 12.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003752/0.02653, allocations: 183.7 kB / 293.2 MB, free: 12.3 MB / 282.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.0001115/0.02664, allocations: 121.9 kB / 293.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004937/0.02714, allocations: 0.527 MB / 293.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.02714, allocations: 4 kB / 293.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.02733, allocations: 171.6 kB / 294 MB, free: 11.42 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.0277, allocations: 120.2 kB / 294.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.02902, allocations: 1.031 MB / 295.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.049e-05/0.0291, allocations: 134 kB / 295.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.00022/0.02932, allocations: 76.67 kB / 295.4 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003576/0.02968, allocations: 238.1 kB / 295.6 MB, free: 9.777 MB / 282.7 MB Notification: Performance of SimCode: time 7.62e-07/0.02968, allocations: 0 / 295.6 MB, free: 9.777 MB / 282.7 MB Notification: Performance of Templates: time 0.01222/0.04191, allocations: 9.352 MB / 305 MB, free: 0.5664 MB / 282.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","",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.931348984129727]