Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.665/1.665, allocations: 227.7 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 4 kB / 307.7 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1237, allocations: 51.53 MB / 359.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002283/0.126, allocations: 1.417 MB / 360.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008127/0.1269, allocations: 307.1 kB / 361 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.127, allocations: 0 / 361 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1272, allocations: 15.88 kB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.583e-05/0.1272, allocations: 19.86 kB / 361 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.1276, allocations: 99.89 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003152/0.128, allocations: 251.5 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000316/0.1283, allocations: 171.3 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.028e-05/0.1284, allocations: 67.72 kB / 361.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.1285, allocations: 79.55 kB / 361.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.1286, allocations: 12 kB / 361.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.341e-05/0.1286, allocations: 27.86 kB / 361.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.1287, allocations: 39.83 kB / 361.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1288, allocations: 113.2 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.1291, allocations: 203.2 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1291, allocations: 4 kB / 362 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1291, allocations: 0 / 362 MB, free: 10.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1291, allocations: 0 / 362 MB, free: 10.49 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.0006738/0.1298, allocations: 458.9 kB / 362.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1298, allocations: 8.031 kB / 362.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.1301, allocations: 32.64 kB / 362.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.1304, allocations: 232.1 kB / 362.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.1304, allocations: 20.94 kB / 362.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.1305, allocations: 28.38 kB / 362.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.1309, allocations: 266.6 kB / 363.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1309, allocations: 7.875 kB / 363.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.131, allocations: 12 kB / 363.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.131, allocations: 8 kB / 363.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.1313, allocations: 161.6 kB / 363.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.1325, allocations: 0.9711 MB / 364.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.1328, allocations: 180.3 kB / 364.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.133, allocations: 81.69 kB / 364.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.133, allocations: 0 / 364.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.1333, allocations: 142.3 kB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.873e-06/0.1333, allocations: 0 / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004783/0.1338, allocations: 224.6 kB / 364.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.1338, allocations: 85.11 kB / 364.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.134, allocations: 159.8 kB / 365.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.134, allocations: 37.7 kB / 365.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.906e-05/0.1341, allocations: 140.5 kB / 365.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.1342, allocations: 63.19 kB / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.1342, allocations: 49.69 kB / 365.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1344, allocations: 338.9 kB / 365.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.1345, allocations: 63.97 kB / 365.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.1346, allocations: 144.3 kB / 365.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.1349, allocations: 189 kB / 366.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1349, allocations: 0 / 366.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003564/0.1353, allocations: 249.2 kB / 366.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1353, allocations: 8 kB / 366.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/0.1353, allocations: 4 kB / 366.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1353, allocations: 4 kB / 366.3 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.1355, allocations: 32.2 kB / 366.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1355, allocations: 8 kB / 366.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.1356, allocations: 35.67 kB / 366.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.1356, allocations: 12 kB / 366.4 MB, free: 5.77 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.condition,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.0001455/0.1358, allocations: 165.6 kB / 366.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.329e-05/0.1358, allocations: 15.88 kB / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.1359, allocations: 16.84 kB / 366.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1359, allocations: 0 / 366.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.1359, allocations: 8 kB / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1359, allocations: 0 / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006743/0.1366, allocations: 0.5751 MB / 367.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1366, allocations: 7.984 kB / 367.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-05/0.1367, allocations: 12 kB / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.1367, allocations: 7.938 kB / 367.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1367, allocations: 7.938 kB / 367.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1367, allocations: 8 kB / 367.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1367, allocations: 0 / 367.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002846/0.137, allocations: 279.2 kB / 367.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-05/0.1371, allocations: 88.95 kB / 367.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.1371, allocations: 15.92 kB / 367.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.59e-05/0.1372, allocations: 8 kB / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.1373, allocations: 23.97 kB / 367.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.1373, allocations: 8 kB / 367.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.231e-05/0.1373, allocations: 95.27 kB / 367.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1374, allocations: 0 / 367.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1377, allocations: 51.75 kB / 367.8 MB, free: 4.285 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001169/0.1378, allocations: 107.2 kB / 367.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003111/0.1381, allocations: 179.9 kB / 368.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1381, allocations: 0 / 368.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.1382, allocations: 87.83 kB / 368.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.1386, allocations: 23.92 kB / 368.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006162/0.1392, allocations: 404.2 kB / 368.6 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.1395, allocations: 0.7368 MB / 369.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.391e-05/0.1396, allocations: 25.94 kB / 369.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.1396, allocations: 19.44 kB / 369.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1396, allocations: 0 / 369.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of Templates: time 0.004172/0.1438, allocations: 1.556 MB / 370.9 MB, free: 1.113 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches