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.001483/0.001483, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001774, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.23 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1262, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.0033/0.1295, allocations: 1.699 MB / 360.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.1303, allocations: 291.1 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1304, allocations: 4 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.1306, allocations: 31.67 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.1307, allocations: 11.81 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.1311, allocations: 123.8 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003624/0.1315, allocations: 263.6 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000358/0.1319, allocations: 197.4 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.132, allocations: 87.72 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.1322, allocations: 107.5 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.1322, allocations: 24 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-05/0.1323, allocations: 28 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.1324, allocations: 59.81 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1325, allocations: 99.47 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003022/0.1328, allocations: 251.1 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1328, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1328, allocations: 3.938 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1328, allocations: 0 / 362.1 MB, free: 10.07 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.0007152/0.1336, allocations: 494.6 kB / 362.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.1336, allocations: 12.03 kB / 362.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002446/0.1339, allocations: 32.64 kB / 362.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1343, allocations: 224.1 kB / 362.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/0.1343, allocations: 20.94 kB / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.1344, allocations: 24.38 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.1348, allocations: 278.5 kB / 363.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1348, allocations: 192 / 363.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.1349, allocations: 11.94 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.1349, allocations: 8 kB / 363.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.1352, allocations: 165.6 kB / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.1363, allocations: 0.9594 MB / 364.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.1366, allocations: 180.8 kB / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.1368, allocations: 89.66 kB / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.1368, allocations: 0 / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.1371, allocations: 133.1 kB / 364.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1371, allocations: 0 / 364.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004868/0.1376, allocations: 224.3 kB / 365 MB, free: 7.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/0.1376, allocations: 93.09 kB / 365 MB, free: 6.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.1378, allocations: 153 kB / 365.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.1378, allocations: 37.7 kB / 365.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.1379, allocations: 140.5 kB / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.138, allocations: 59.2 kB / 365.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1381, allocations: 81.45 kB / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1383, allocations: 330.8 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1384, allocations: 67.97 kB / 365.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.1386, allocations: 136.5 kB / 366 MB, free: 5.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.1388, allocations: 192.4 kB / 366.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1389, allocations: 0 / 366.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003823/0.1392, allocations: 257.2 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.1393, allocations: 8 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1393, allocations: 0 / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1393, allocations: 4 kB / 366.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1395, allocations: 35.86 kB / 366.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.1395, allocations: 7.984 kB / 366.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1396, allocations: 32.03 kB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.1396, allocations: 8 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.0001509/0.1398, allocations: 173.5 kB / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.1398, allocations: 15.81 kB / 366.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.328e-05/0.1399, allocations: 20.84 kB / 366.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1399, allocations: 4 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1399, allocations: 0 / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1399, allocations: 3.984 kB / 366.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007271/0.1406, allocations: 0.5791 MB / 367.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1407, allocations: 0 / 367.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.483e-05/0.1407, allocations: 15.94 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1408, allocations: 3.938 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1408, allocations: 3.984 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1408, allocations: 7.938 kB / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1408, allocations: 0 / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.1411, allocations: 279.7 kB / 367.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.1412, allocations: 89 kB / 367.7 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.1412, allocations: 8 kB / 367.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.315e-05/0.1413, allocations: 11.94 kB / 367.8 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.1414, allocations: 19.97 kB / 367.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.1414, allocations: 4 kB / 367.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.958e-05/0.1415, allocations: 103.3 kB / 367.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1415, allocations: 0 / 367.9 MB, free: 3.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.1418, allocations: 55.75 kB / 367.9 MB, free: 3.801 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.0001276/0.142, allocations: 111.2 kB / 368.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003887/0.1424, allocations: 181.1 kB / 368.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1424, allocations: 0 / 368.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.1425, allocations: 75.92 kB / 368.3 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.1429, allocations: 28.53 kB / 368.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006718/0.1435, allocations: 336.8 kB / 368.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1439, allocations: 0.7365 MB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.639e-05/0.144, allocations: 21.95 kB / 369.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.1441, allocations: 23.42 kB / 369.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1441, allocations: 0 / 369.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of Templates: time 0.004872/0.149, allocations: 1.666 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 cvode -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