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.0009869/0.0009869, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001157/0.001157, allocations: 141.4 kB / 24.89 MB, free: 9.215 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 0.9909/0.9909, allocations: 173.3 MB / 201.5 MB, free: 9.219 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.302e-06/1.302e-06, allocations: 0 / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.476e-05, allocations: 6.25 kB / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003732/0.003747, allocations: 4.115 MB / 272.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.00554, allocations: 1.222 MB / 273.9 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.005751, allocations: 15.94 kB / 273.9 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.005927, allocations: 106.9 kB / 274 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.006181, allocations: 190.2 kB / 274.2 MB, free: 488 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004626/0.006643, allocations: 339.5 kB / 274.5 MB, free: 148 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006459/0.007289, allocations: 1.12 MB / 275.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.007518, allocations: 197 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004447/0.007963, allocations: 0.6083 MB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.008271, allocations: 363.1 kB / 276.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.681e-05/0.008368, allocations: 116 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-05/0.008453, allocations: 120 kB / 277 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.008568, allocations: 235.3 kB / 277.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.008754, allocations: 315.3 kB / 277.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004684/0.009223, allocations: 0.7283 MB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.009225, allocations: 0 / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.009225, allocations: 0 / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.009231, allocations: 0 / 278.3 MB, free: 12.35 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.001405/0.01064, allocations: 1.084 MB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.933e-05/0.01067, allocations: 12.92 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.01077, allocations: 104.8 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.01107, allocations: 307.4 kB / 279.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.0111, allocations: 41.69 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.966e-05/0.01116, allocations: 68.36 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007204/0.01188, allocations: 0.9542 MB / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.01189, allocations: 192 / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.01193, allocations: 32.36 kB / 280.9 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.01194, allocations: 19.94 kB / 280.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.01224, allocations: 238.8 kB / 281.1 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.01413, allocations: 2.277 MB / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.01457, allocations: 307.4 kB / 283.7 MB, free: 6.617 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.01476, allocations: 150.3 kB / 283.8 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.01479, allocations: 16.48 kB / 283.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.01502, allocations: 226.1 kB / 284.1 MB, free: 6.219 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.01502, allocations: 0 / 284.1 MB, free: 6.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0004259/0.01545, allocations: 334 kB / 284.4 MB, free: 5.887 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/0.01555, allocations: 388.2 kB / 284.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.01579, allocations: 458.9 kB / 285.2 MB, free: 4.961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.01582, allocations: 41.7 kB / 285.3 MB, free: 4.914 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.01595, allocations: 329.2 kB / 285.6 MB, free: 4.586 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003273/0.01627, allocations: 178.5 kB / 285.8 MB, free: 4.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.01641, allocations: 142.5 kB / 285.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.8e-05/0.0165, allocations: 374.7 kB / 286.3 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.01665, allocations: 149.4 kB / 286.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.01697, allocations: 0.7241 MB / 287.1 MB, free: 2.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.01735, allocations: 0.499 MB / 287.6 MB, free: 2.191 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01735, allocations: 4 kB / 287.6 MB, free: 2.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004838/0.01783, allocations: 0.5421 MB / 288.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.01787, allocations: 71.39 kB / 288.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.01788, allocations: 7.938 kB / 288.3 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.01789, allocations: 12 kB / 288.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.01834, allocations: 212.2 kB / 288.5 MB, free: 1.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.01835, allocations: 8 kB / 288.5 MB, free: 1.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.01865, allocations: 123.4 kB / 288.6 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.01868, allocations: 24 kB / 288.6 MB, free: 1.156 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.0001314/0.01881, allocations: 169.6 kB / 288.8 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/0.01887, allocations: 59.88 kB / 288.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.01894, allocations: 69.94 kB / 288.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.01894, allocations: 4 kB / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.01894, allocations: 0 / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.01895, allocations: 3.984 kB / 288.9 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.01967, allocations: 0.6923 MB / 289.6 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01967, allocations: 3.938 kB / 289.6 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.01998, allocations: 127.8 kB / 289.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-05/0.01999, allocations: 4.047 kB / 289.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.02002, allocations: 11.94 kB / 289.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.02002, allocations: 4 kB / 289.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.02002, allocations: 7.938 kB / 289.8 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004809/0.0205, allocations: 478.7 kB / 290.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.02055, allocations: 59.38 kB / 290.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.0206, allocations: 12 kB / 290.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.02082, allocations: 59.94 kB / 290.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.916e-05/0.0209, allocations: 48.45 kB / 290.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.02092, allocations: 15.98 kB / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.02104, allocations: 192.4 kB / 290.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02104, allocations: 0 / 290.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003038/0.02135, allocations: 187.7 kB / 290.8 MB, free: 14.93 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 9.298e-05/0.02144, allocations: 104.3 kB / 290.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.02186, allocations: 0.4959 MB / 291.4 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/0.02188, allocations: 8.5 kB / 291.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.02204, allocations: 154 kB / 291.6 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.02232, allocations: 121.1 kB / 291.7 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.02366, allocations: 1.006 MB / 292.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.527e-05/0.02372, allocations: 130 kB / 292.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.02392, allocations: 80.66 kB / 292.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003195/0.02424, allocations: 205.2 kB / 293.1 MB, free: 12.54 MB / 282.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02424, allocations: 4 kB / 293.1 MB, free: 12.53 MB / 282.7 MB Notification: Performance of Templates: time 0.009873/0.03412, allocations: 9.137 MB / 302.2 MB, free: 3.543 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 -s gbode -gbm=radauIIA3 -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.7982504731044173]