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.001023/0.001023, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00153/0.002553, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001043/0.001043, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001435/0.002478, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9482/0.9482, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08687/1.035, allocations: 52.49 MB / 238.3 MB, free: 4.441 MB / 234.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.603e-06/1.603e-06, allocations: 0 / 239.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.955e-05/2.115e-05, allocations: 2.312 kB / 239.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003908/0.003929, allocations: 4.136 MB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.005868, allocations: 1.206 MB / 244.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002876/0.006156, allocations: 11.94 kB / 244.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.00636, allocations: 114.8 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003214/0.006681, allocations: 198.1 kB / 245.2 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005476/0.007229, allocations: 335.5 kB / 245.5 MB, free: 13.15 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007868/0.008016, allocations: 1.1 MB / 246.6 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.008254, allocations: 201 kB / 246.8 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.008817, allocations: 0.6814 MB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003258/0.009143, allocations: 363 kB / 247.9 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.009254, allocations: 120 kB / 248 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.299e-05/0.009347, allocations: 116 kB / 248.1 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.009454, allocations: 167.6 kB / 248.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.00965, allocations: 259.6 kB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000538/0.01019, allocations: 0.6426 MB / 249.2 MB, free: 9.516 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-05/0.01021, allocations: 0 / 249.2 MB, free: 9.516 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01021, allocations: 0 / 249.2 MB, free: 9.516 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.01023, allocations: 4 kB / 249.2 MB, free: 9.512 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.001452/0.01168, allocations: 1.236 MB / 250.4 MB, free: 8.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.01174, allocations: 12.03 kB / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.01192, allocations: 104.8 kB / 250.5 MB, free: 8.117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.01239, allocations: 311.5 kB / 250.8 MB, free: 7.785 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.01243, allocations: 45.67 kB / 250.9 MB, free: 7.742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.025e-05/0.0125, allocations: 68.31 kB / 250.9 MB, free: 7.676 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007955/0.01329, allocations: 0.9581 MB / 251.9 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.0133, allocations: 192 / 251.9 MB, free: 6.578 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.01334, allocations: 28.38 kB / 251.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.01336, allocations: 19.94 kB / 251.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.01367, allocations: 234.8 kB / 252.2 MB, free: 6.305 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.01569, allocations: 2.28 MB / 254.5 MB, free: 3.922 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.01616, allocations: 307 kB / 254.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.01635, allocations: 158.2 kB / 254.9 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.01638, allocations: 16.48 kB / 254.9 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.01665, allocations: 226.1 kB / 255.1 MB, free: 3.207 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.294e-06/0.01665, allocations: 0 / 255.1 MB, free: 3.207 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0004709/0.01713, allocations: 337.9 kB / 255.5 MB, free: 2.871 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.01716, allocations: 63.89 kB / 255.5 MB, free: 2.797 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.01742, allocations: 455 kB / 256 MB, free: 2.34 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.01745, allocations: 37.7 kB / 256 MB, free: 2.297 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.01759, allocations: 333.2 kB / 256.3 MB, free: 1.969 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.091e-05/0.01768, allocations: 174.5 kB / 256.5 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.01781, allocations: 138.6 kB / 256.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.01792, allocations: 374.6 kB / 257 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.01806, allocations: 157.4 kB / 257.2 MB, free: 1.117 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.01839, allocations: 0.7319 MB / 257.9 MB, free: 176 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.01877, allocations: 0.4951 MB / 258.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.01878, allocations: 0 / 258.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004893/0.01926, allocations: 0.5502 MB / 258.9 MB, free: 15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.778e-05/0.01931, allocations: 71.33 kB / 259 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.01932, allocations: 11.94 kB / 259 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.01933, allocations: 8 kB / 259 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.01983, allocations: 224 kB / 259.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.01984, allocations: 23.92 kB / 259.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.02016, allocations: 123.4 kB / 259.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.02019, allocations: 23.98 kB / 259.4 MB, free: 14.51 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.0001404/0.02033, allocations: 165.6 kB / 259.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.02039, allocations: 63.83 kB / 259.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.999e-05/0.02047, allocations: 69.94 kB / 259.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.02047, allocations: 8 kB / 259.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.02048, allocations: 0 / 259.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.02048, allocations: 3.984 kB / 259.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.02125, allocations: 0.6807 MB / 260.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.02125, allocations: 4 kB / 260.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.0216, allocations: 135.8 kB / 260.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.02165, allocations: 63.45 kB / 260.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.02166, allocations: 0 / 260.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.02168, allocations: 15.98 kB / 260.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.02168, allocations: 0 / 260.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.02169, allocations: 0 / 260.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.02221, allocations: 482.7 kB / 261.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/0.02226, allocations: 12 kB / 261.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.02248, allocations: 59.94 kB / 261.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.02256, allocations: 48.42 kB / 261.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.02258, allocations: 11.98 kB / 261.2 MB, free: 12.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.02272, allocations: 196.4 kB / 261.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02272, allocations: 0 / 261.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.02307, allocations: 187.7 kB / 261.6 MB, free: 12.28 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.0001255/0.0232, allocations: 104.2 kB / 261.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.02367, allocations: 0.5002 MB / 262.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.156e-05/0.02369, allocations: 12.5 kB / 262.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001765/0.02387, allocations: 148.6 kB / 262.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.02422, allocations: 177.9 kB / 262.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.02705, allocations: 1.025 MB / 263.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.733e-05/0.02713, allocations: 126 kB / 263.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002274/0.02736, allocations: 80.66 kB / 263.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.02769, allocations: 201.2 kB / 264 MB, free: 9.816 MB / 266.7 MB Notification: Performance of SimCode: time 1.974e-06/0.0277, allocations: 0 / 264 MB, free: 9.816 MB / 266.7 MB Notification: Performance of Templates: time 0.01127/0.03896, allocations: 9.663 MB / 273.6 MB, free: 304 kB / 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 -ignoreHideResult -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.6649233838543296]