Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00113/0.00113, allocations: 91.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9343/0.9343, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 4 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.643e-05/1.877e-05, allocations: 2.312 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003772/0.003791, allocations: 4.17 MB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.005138, allocations: 1.203 MB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.005324, allocations: 15.94 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.005512, allocations: 110.8 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.005746, allocations: 194.2 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.006239, allocations: 335.5 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006686/0.006908, allocations: 1.124 MB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.007146, allocations: 186.9 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004138/0.007559, allocations: 0.6083 MB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004397/0.007999, allocations: 363.1 kB / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.008101, allocations: 116 kB / 281.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.687e-05/0.008198, allocations: 123.9 kB / 281.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.008314, allocations: 227.4 kB / 281.7 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.008516, allocations: 319.3 kB / 282 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005203/0.009037, allocations: 0.7205 MB / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.00904, allocations: 4 kB / 282.7 MB, free: 7.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.009041, allocations: 0 / 282.7 MB, free: 7.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.009047, allocations: 0 / 282.7 MB, free: 7.633 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.001357/0.0104, allocations: 1.216 MB / 283.9 MB, free: 6.363 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.01044, allocations: 11.98 kB / 283.9 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.01059, allocations: 140.4 kB / 284.1 MB, free: 6.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.011, allocations: 434.1 kB / 284.5 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.01103, allocations: 45.69 kB / 284.5 MB, free: 5.715 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.466e-05/0.01111, allocations: 64.38 kB / 284.6 MB, free: 5.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009851/0.01209, allocations: 1.042 MB / 285.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.01211, allocations: 4.188 kB / 285.6 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.666e-05/0.01215, allocations: 28.38 kB / 285.7 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.01217, allocations: 15.94 kB / 285.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005516/0.01272, allocations: 361.6 kB / 286 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002509/0.01523, allocations: 3.038 MB / 289.1 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.01588, allocations: 385.1 kB / 289.4 MB, free: 0.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.01618, allocations: 209 kB / 289.6 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.01622, allocations: 16.48 kB / 289.7 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.01654, allocations: 251.8 kB / 289.9 MB, free: 20 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.773e-06/0.01655, allocations: 0 / 289.9 MB, free: 20 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.09932/0.1159, allocations: 0.5 MB / 290.4 MB, free: 26.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.1159, allocations: 372.8 kB / 290.8 MB, free: 25.97 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/0.1163, allocations: 0.5241 MB / 291.3 MB, free: 25.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.1164, allocations: 39.55 kB / 291.3 MB, free: 25.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1166, allocations: 427.3 kB / 291.8 MB, free: 25.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.958e-05/0.1166, allocations: 173.3 kB / 291.9 MB, free: 25.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.1168, allocations: 149.7 kB / 292.1 MB, free: 25.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.263e-05/0.1169, allocations: 0.5357 MB / 292.6 MB, free: 24.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.1172, allocations: 196.3 kB / 292.8 MB, free: 24.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004089/0.1176, allocations: 0.88 MB / 293.7 MB, free: 23.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005577/0.1181, allocations: 0.622 MB / 294.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1181, allocations: 1.25 kB / 294.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009081/0.1191, allocations: 0.7415 MB / 295 MB, free: 23.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.1191, allocations: 70.53 kB / 295.1 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.1191, allocations: 7.297 kB / 295.1 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.1191, allocations: 9.875 kB / 295.1 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005273/0.1197, allocations: 194.6 kB / 295.3 MB, free: 23.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.1197, allocations: 14.61 kB / 295.3 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.1201, allocations: 132.2 kB / 295.5 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.1201, allocations: 36.17 kB / 295.5 MB, free: 23.25 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.0001501/0.1203, allocations: 208 kB / 295.7 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.389e-05/0.1204, allocations: 81.36 kB / 295.8 MB, free: 23.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.676e-05/0.1204, allocations: 71.69 kB / 295.8 MB, free: 23.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.1205, allocations: 8.719 kB / 295.9 MB, free: 23.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.1205, allocations: 0 / 295.9 MB, free: 23.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.1205, allocations: 4.25 kB / 295.9 MB, free: 23.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1218, allocations: 1.069 MB / 296.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1218, allocations: 0.75 kB / 296.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003379/0.1221, allocations: 124.1 kB / 297.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1221, allocations: 2.016 kB / 297.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/0.1221, allocations: 14.06 kB / 297.1 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1222, allocations: 1.594 kB / 297.1 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1222, allocations: 2.547 kB / 297.1 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008058/0.123, allocations: 0.6785 MB / 297.8 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.123, allocations: 69.81 kB / 297.8 MB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.698e-05/0.1231, allocations: 16.75 kB / 297.8 MB, free: 22.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.1233, allocations: 60.94 kB / 297.9 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.888e-05/0.1234, allocations: 48.75 kB / 297.9 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.1235, allocations: 15.83 kB / 298 MB, free: 22.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.1237, allocations: 339.7 kB / 298.3 MB, free: 22.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1237, allocations: 1.094 kB / 298.3 MB, free: 22.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004053/0.1241, allocations: 188 kB / 298.5 MB, free: 22.09 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 9.461e-05/0.1242, allocations: 119.7 kB / 298.6 MB, free: 21.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007051/0.1249, allocations: 0.5907 MB / 299.2 MB, free: 21.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1249, allocations: 2.094 kB / 299.2 MB, free: 21.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.1252, allocations: 195 kB / 299.4 MB, free: 21.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/0.1256, allocations: 121.7 kB / 299.5 MB, free: 21.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.127, allocations: 1.055 MB / 300.5 MB, free: 21.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.182e-05/0.1271, allocations: 128.6 kB / 300.7 MB, free: 20.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002167/0.1273, allocations: 78.22 kB / 300.8 MB, free: 20.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.1275, allocations: 53.89 kB / 300.8 MB, free: 20.91 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1275, allocations: 4 kB / 300.8 MB, free: 20.91 MB / 266.7 MB Notification: Performance of Templates: time 0.009192/0.1367, allocations: 8.769 MB / 309.6 MB, free: 16.19 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.004226477816701]