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.001013/0.001013, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001067/0.001067, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 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 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.043 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 1.282e-06/1.282e-06, allocations: 0 / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.347e-05/1.475e-05, allocations: 5.266 kB / 273.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003522/0.003537, allocations: 4.143 MB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.004932, allocations: 1.237 MB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.005106, allocations: 15.94 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.00528, allocations: 106.9 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.005506, allocations: 194.1 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004027/0.005909, allocations: 339.5 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006191/0.006528, allocations: 1.12 MB / 280.6 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.006744, allocations: 196.9 kB / 280.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003974/0.007142, allocations: 0.6083 MB / 281.4 MB, free: 9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.007441, allocations: 363 kB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.109e-05/0.007532, allocations: 116 kB / 281.9 MB, free: 8.531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.459e-05/0.007616, allocations: 124 kB / 282 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.007729, allocations: 231.3 kB / 282.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.008052, allocations: 319.3 kB / 282.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.008516, allocations: 0.7244 MB / 283.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.008518, allocations: 0 / 283.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.008519, allocations: 0 / 283.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.008524, allocations: 0 / 283.2 MB, free: 7.145 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.001196/0.00972, allocations: 1.107 MB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.009751, allocations: 11.98 kB / 284.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.009858, allocations: 104.9 kB / 284.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.01017, allocations: 299.5 kB / 284.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.0102, allocations: 49.69 kB / 284.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.01026, allocations: 68.31 kB / 284.9 MB, free: 5.449 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007401/0.011, allocations: 0.9464 MB / 285.8 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.01102, allocations: 8.109 kB / 285.8 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.753e-05/0.01106, allocations: 24.38 kB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.01107, allocations: 23.94 kB / 285.9 MB, free: 4.309 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.01138, allocations: 238.7 kB / 286.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.01343, allocations: 2.276 MB / 288.4 MB, free: 1.703 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.01388, allocations: 308.4 kB / 288.7 MB, free: 1.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.01407, allocations: 154.3 kB / 288.8 MB, free: 1.238 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.0141, allocations: 16.48 kB / 288.8 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.01434, allocations: 226 kB / 289.1 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.773e-06/0.01434, allocations: 0 / 289.1 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0005704/0.01491, allocations: 334 kB / 289.4 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.01501, allocations: 372.3 kB / 289.8 MB, free: 216 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1039/0.1189, allocations: 460.8 kB / 290.2 MB, free: 26.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.881e-05/0.119, allocations: 40.36 kB / 290.2 MB, free: 26.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.1191, allocations: 337.1 kB / 290.6 MB, free: 26.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.1193, allocations: 176.7 kB / 290.7 MB, free: 26.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.1194, allocations: 135.3 kB / 290.9 MB, free: 25.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.265e-05/0.1195, allocations: 376.4 kB / 291.2 MB, free: 25.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.1197, allocations: 147.3 kB / 291.4 MB, free: 25.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.1199, allocations: 0.7278 MB / 292.1 MB, free: 24.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004296/0.1204, allocations: 0.5002 MB / 292.6 MB, free: 24.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.1204, allocations: 2.641 kB / 292.6 MB, free: 24.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006639/0.121, allocations: 0.5503 MB / 293.2 MB, free: 24.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/0.1211, allocations: 66.61 kB / 293.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.1211, allocations: 6.375 kB / 293.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.1211, allocations: 12.81 kB / 293.3 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/0.1217, allocations: 209.8 kB / 293.5 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1217, allocations: 15.84 kB / 293.5 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.1221, allocations: 128.3 kB / 293.6 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.1221, allocations: 26.41 kB / 293.6 MB, free: 24.3 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.0001414/0.1222, allocations: 170 kB / 293.8 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.521e-05/0.1223, allocations: 56.03 kB / 293.8 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.508e-05/0.1224, allocations: 74.75 kB / 293.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1224, allocations: 9.531 kB / 293.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1224, allocations: 0 / 293.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1224, allocations: 3.938 kB / 293.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008634/0.1233, allocations: 0.6883 MB / 294.6 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1233, allocations: 3.938 kB / 294.6 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.1236, allocations: 131.2 kB / 294.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1236, allocations: 2.469 kB / 294.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.1236, allocations: 12.8 kB / 294.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.1236, allocations: 2.344 kB / 294.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1236, allocations: 0 / 294.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.1242, allocations: 485.7 kB / 295.2 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.211e-05/0.1242, allocations: 59.02 kB / 295.3 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.1243, allocations: 13.98 kB / 295.3 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.1245, allocations: 62.19 kB / 295.4 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.1246, allocations: 49.28 kB / 295.4 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.1246, allocations: 16.25 kB / 295.4 MB, free: 23.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000167/0.1248, allocations: 202.2 kB / 295.6 MB, free: 23.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1248, allocations: 0 / 295.6 MB, free: 23.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003729/0.1252, allocations: 182.6 kB / 295.8 MB, free: 23.73 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.741e-05/0.1253, allocations: 93.91 kB / 295.9 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004799/0.1258, allocations: 0.4991 MB / 296.4 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.615e-05/0.1258, allocations: 9.688 kB / 296.4 MB, free: 23.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.126, allocations: 151.8 kB / 296.6 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.1263, allocations: 118.9 kB / 296.7 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.1275, allocations: 1.018 MB / 297.7 MB, free: 22.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.227e-05/0.1276, allocations: 127.9 kB / 297.8 MB, free: 22.81 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.1278, allocations: 79.81 kB / 297.9 MB, free: 22.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.1282, allocations: 205.1 kB / 298.1 MB, free: 22.74 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1282, allocations: 0 / 298.1 MB, free: 22.74 MB / 266.7 MB Notification: Performance of Templates: time 0.01021/0.1384, allocations: 9.125 MB / 307.2 MB, free: 18.57 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 -s gbode -gbm=radauIIA3 -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: 2.7978076050058007]