Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.561/1.561, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.61 kB / 308.3 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003322/0.116, allocations: 1.698 MB / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007788/0.1168, allocations: 299.1 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.117, allocations: 4 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.1172, allocations: 27.61 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.254e-05/0.1173, allocations: 19.8 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.1178, allocations: 115.8 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.1182, allocations: 275.5 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.1185, allocations: 177.5 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.297e-05/0.1186, allocations: 91.7 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.1187, allocations: 103.5 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/0.1187, allocations: 24 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.197e-05/0.1188, allocations: 31.94 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.624e-05/0.1189, allocations: 63.81 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.817e-05/0.119, allocations: 99.53 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.1193, allocations: 243.1 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1193, allocations: 3.984 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1193, allocations: 0 / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1193, allocations: 0 / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007202/0.12, allocations: 498.6 kB / 362.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1201, allocations: 8.031 kB / 362.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.1203, allocations: 32.64 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.1206, allocations: 224.1 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.1206, allocations: 24.92 kB / 362.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.117e-05/0.1207, allocations: 32.38 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1211, allocations: 270.5 kB / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1212, allocations: 192 / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.1212, allocations: 15.94 kB / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1212, allocations: 8 kB / 363.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.1215, allocations: 161.6 kB / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1226, allocations: 0.9594 MB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.1228, allocations: 173.4 kB / 364.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.123, allocations: 85.62 kB / 364.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.123, allocations: 4 kB / 364.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.1232, allocations: 137 kB / 364.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1232, allocations: 0 / 364.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004118/0.1236, allocations: 224.2 kB / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.1237, allocations: 89.17 kB / 365 MB, free: 6.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1238, allocations: 149.6 kB / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.1239, allocations: 33.7 kB / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.124, allocations: 148.5 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.124, allocations: 59.2 kB / 365.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1242, allocations: 81.41 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1243, allocations: 338.7 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.1244, allocations: 59.97 kB / 365.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.1246, allocations: 140.5 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.1249, allocations: 188.4 kB / 366.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1249, allocations: 4 kB / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003837/0.1253, allocations: 261.2 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1253, allocations: 4 kB / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1253, allocations: 4 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1254, allocations: 4 kB / 366.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.1255, allocations: 31.92 kB / 366.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1255, allocations: 4 kB / 366.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1256, allocations: 32.02 kB / 366.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.1257, allocations: 16 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.0001729/0.1258, allocations: 165.5 kB / 366.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.1259, allocations: 15.81 kB / 366.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.1259, allocations: 20.83 kB / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.126, allocations: 4 kB / 366.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.126, allocations: 0 / 366.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.126, allocations: 7.984 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007258/0.1267, allocations: 0.5713 MB / 367.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1267, allocations: 0 / 367.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.758e-05/0.1268, allocations: 15.98 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1268, allocations: 4 kB / 367.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.1268, allocations: 4 kB / 367.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.1268, allocations: 3.938 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.1268, allocations: 7.938 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.1272, allocations: 279.8 kB / 367.6 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.1272, allocations: 85.02 kB / 367.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.1273, allocations: 4 kB / 367.7 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.1274, allocations: 11.92 kB / 367.7 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.1275, allocations: 23.97 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.1275, allocations: 4 kB / 367.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.686e-05/0.1276, allocations: 106.9 kB / 367.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1276, allocations: 0 / 367.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00029/0.1279, allocations: 51.75 kB / 367.9 MB, free: 3.816 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001625/0.128, allocations: 111.2 kB / 368 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000375/0.1284, allocations: 185.1 kB / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1284, allocations: 0 / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.1286, allocations: 83.84 kB / 368.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1289, allocations: 28.48 kB / 368.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007104/0.1296, allocations: 336.9 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.1299, allocations: 0.7287 MB / 369.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.164e-05/0.13, allocations: 25.94 kB / 369.4 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.1301, allocations: 19.44 kB / 369.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1301, allocations: 0 / 369.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of Templates: time 0.03036/0.1604, allocations: 1.674 MB / 371.1 MB, free: 0.5781 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches