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.001187/0.001187, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002039/0.003226, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001102/0.001102, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001437/0.002538, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.043/1.043, allocations: 177.2 MB / 189.8 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1055/1.149, allocations: 53.66 MB / 243.4 MB, free: 15.48 MB / 250.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 3.046e-06/3.046e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.065e-05/4.369e-05, allocations: 2.312 kB / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005969/0.006013, allocations: 4.178 MB / 248.9 MB, free: 9.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003077/0.00909, allocations: 1.245 MB / 250.1 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004177/0.009508, allocations: 11.94 kB / 250.2 MB, free: 8.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.009764, allocations: 106.8 kB / 250.3 MB, free: 8.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.0102, allocations: 194.2 kB / 250.4 MB, free: 8.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008012/0.011, allocations: 347.5 kB / 250.8 MB, free: 8.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.01225, allocations: 1.104 MB / 251.9 MB, free: 6.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.01261, allocations: 193 kB / 252.1 MB, free: 6.785 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009733/0.01359, allocations: 0.6774 MB / 252.8 MB, free: 6.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.01421, allocations: 371 kB / 253.1 MB, free: 5.742 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002052/0.01441, allocations: 120 kB / 253.2 MB, free: 5.625 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.01458, allocations: 120 kB / 253.4 MB, free: 5.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.01475, allocations: 163.6 kB / 253.5 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003222/0.01507, allocations: 259.6 kB / 253.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008227/0.01589, allocations: 0.6348 MB / 254.4 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.766e-05/0.01591, allocations: 0 / 254.4 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01591, allocations: 4 kB / 254.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.927e-05/0.01594, allocations: 0 / 254.4 MB, free: 4.453 MB / 250.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.002207/0.01815, allocations: 1.247 MB / 255.7 MB, free: 3.164 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.0182, allocations: 12.03 kB / 255.7 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.01839, allocations: 112.8 kB / 255.8 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005375/0.01893, allocations: 307.4 kB / 256.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.933e-05/0.01899, allocations: 49.67 kB / 256.1 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.0191, allocations: 64.38 kB / 256.2 MB, free: 2.602 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.02035, allocations: 0.9581 MB / 257.1 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.02037, allocations: 192 / 257.1 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.092e-05/0.02043, allocations: 24.38 kB / 257.2 MB, free: 1.48 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.02045, allocations: 19.94 kB / 257.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005097/0.02096, allocations: 234.8 kB / 257.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003483/0.02444, allocations: 2.28 MB / 259.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007724/0.02522, allocations: 312.2 kB / 260 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.02552, allocations: 158.2 kB / 260.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.02558, allocations: 12.48 kB / 260.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/0.02598, allocations: 222.1 kB / 260.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.336e-06/0.02598, allocations: 4 kB / 260.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007219/0.0267, allocations: 334 kB / 260.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.02676, allocations: 67.84 kB / 260.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.0272, allocations: 466.9 kB / 261.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.02726, allocations: 37.7 kB / 261.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.02746, allocations: 333.2 kB / 261.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.02761, allocations: 170.5 kB / 261.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.02783, allocations: 150.5 kB / 261.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.02799, allocations: 374.6 kB / 262.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.02824, allocations: 145.4 kB / 262.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.02877, allocations: 0.7241 MB / 263.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000646/0.02942, allocations: 0.5224 MB / 263.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.02943, allocations: 7.938 kB / 263.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008473/0.03027, allocations: 0.5536 MB / 264.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.93e-05/0.03035, allocations: 64.17 kB / 264.3 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.03037, allocations: 7.938 kB / 264.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.03039, allocations: 16 kB / 264.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.03125, allocations: 219.7 kB / 264.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.03126, allocations: 19.92 kB / 264.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.03187, allocations: 123.5 kB / 264.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.153e-05/0.03192, allocations: 31.98 kB / 264.7 MB, free: 9.41 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.0002245/0.03215, allocations: 157.6 kB / 264.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.581e-05/0.03224, allocations: 59.88 kB / 264.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.03236, allocations: 69.94 kB / 265 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.03237, allocations: 7.938 kB / 265 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.03237, allocations: 0 / 265 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.03238, allocations: 7.984 kB / 265 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.03352, allocations: 0.6884 MB / 265.7 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.03353, allocations: 0 / 265.7 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004789/0.03401, allocations: 144.6 kB / 265.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.947e-05/0.03408, allocations: 59.5 kB / 265.9 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.03408, allocations: 0 / 265.9 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.03411, allocations: 8 kB / 265.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.03412, allocations: 7.984 kB / 265.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.03412, allocations: 4 kB / 265.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.03478, allocations: 482.7 kB / 266.4 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.03485, allocations: 12 kB / 266.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.03516, allocations: 63.97 kB / 266.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.03526, allocations: 52.41 kB / 266.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.03528, allocations: 8 kB / 266.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.03547, allocations: 192.4 kB / 266.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03547, allocations: 3.938 kB / 266.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004828/0.03595, allocations: 183.7 kB / 266.9 MB, free: 7.176 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.0001467/0.0361, allocations: 108.3 kB / 267 MB, free: 7.059 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.03676, allocations: 0.5061 MB / 267.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.778e-05/0.03679, allocations: 12.5 kB / 267.5 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.03705, allocations: 181.8 kB / 267.7 MB, free: 6.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00077/0.03782, allocations: 0.9902 MB / 268.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003941/0.04176, allocations: 1.032 MB / 269.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.249e-05/0.04185, allocations: 130 kB / 269.8 MB, free: 3.934 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003023/0.04216, allocations: 84.66 kB / 269.9 MB, free: 3.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.04259, allocations: 205.2 kB / 270.1 MB, free: 3.652 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.04259, allocations: 0 / 270.1 MB, free: 3.652 MB / 266.7 MB Notification: Performance of Templates: time 0.01477/0.05736, allocations: 9.488 MB / 279.6 MB, free: 10.32 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.80066523514688]