Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 107.5 kB / 18.39 MB, free: 4.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 191 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 48.36 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.0798, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002534/0.08237, allocations: 1.469 MB / 377.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006313/0.08303, allocations: 252.8 kB / 377.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.907e-05/0.08314, allocations: 3.938 kB / 377.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.08329, allocations: 23.75 kB / 377.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.185e-05/0.08335, allocations: 15.8 kB / 377.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.08376, allocations: 115.8 kB / 377.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.08406, allocations: 259.6 kB / 377.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.08434, allocations: 170.4 kB / 378.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.08445, allocations: 87.7 kB / 378.2 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.08459, allocations: 87.61 kB / 378.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.795e-05/0.08463, allocations: 24 kB / 378.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.755e-05/0.08471, allocations: 39.92 kB / 378.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.838e-05/0.08478, allocations: 51.83 kB / 378.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.297e-05/0.08488, allocations: 91.53 kB / 378.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.08514, allocations: 247.2 kB / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.08516, allocations: 0 / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08516, allocations: 0 / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.08517, allocations: 0 / 378.7 MB, free: 1.676 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006142/0.08579, allocations: 486.5 kB / 379.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.08583, allocations: 12.03 kB / 379.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.705e-05/0.08591, allocations: 24.66 kB / 379.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.08619, allocations: 228 kB / 379.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.08623, allocations: 20.94 kB / 379.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.08628, allocations: 32.31 kB / 379.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.08666, allocations: 244 kB / 379.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.08668, allocations: 192 / 379.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.08671, allocations: 15.94 kB / 379.7 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.08673, allocations: 7.984 kB / 379.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.08701, allocations: 157.7 kB / 379.9 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1512/0.2382, allocations: 0.686 MB / 380.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.2385, allocations: 169.8 kB / 380.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.2386, allocations: 77.56 kB / 380.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2387, allocations: 6.344 kB / 380.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.2389, allocations: 127.4 kB / 381 MB, free: 12.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.575e-06/0.2389, allocations: 0 / 381 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003807/0.2393, allocations: 221.3 kB / 381.2 MB, free: 12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.2393, allocations: 55.02 kB / 381.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/0.2394, allocations: 145.1 kB / 381.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2394, allocations: 36.48 kB / 381.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.2395, allocations: 134.6 kB / 381.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.2395, allocations: 65.06 kB / 381.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-05/0.2396, allocations: 73.98 kB / 381.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.2397, allocations: 326.3 kB / 382 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.2398, allocations: 61.02 kB / 382 MB, free: 11.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2399, allocations: 132.3 kB / 382.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.2401, allocations: 173.6 kB / 382.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2401, allocations: 2.641 kB / 382.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003233/0.2404, allocations: 240.1 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2405, allocations: 9.406 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2405, allocations: 2.75 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.2405, allocations: 3.875 kB / 382.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.2406, allocations: 38.77 kB / 382.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.2407, allocations: 4.547 kB / 382.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/0.2408, allocations: 27.88 kB / 382.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.2408, allocations: 13.36 kB / 382.7 MB, free: 11.16 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001267/0.2409, allocations: 154.2 kB / 382.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.241, allocations: 18.72 kB / 382.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.2413, allocations: 198 kB / 383 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.2413, allocations: 9.766 kB / 383.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.2413, allocations: 0.625 kB / 383.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2414, allocations: 2.203 kB / 383.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000667/0.242, allocations: 0.5652 MB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.242, allocations: 1.984 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.217e-05/0.2421, allocations: 20.23 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.2421, allocations: 1.719 kB / 383.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2422, allocations: 9.047 kB / 383.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2422, allocations: 3.344 kB / 383.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2422, allocations: 1.109 kB / 383.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.2424, allocations: 276.3 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.2425, allocations: 94.5 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.2425, allocations: 9.016 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.2426, allocations: 7.969 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.62e-05/0.2427, allocations: 21.23 kB / 384.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.2427, allocations: 9.547 kB / 384.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.2427, allocations: 97.58 kB / 384.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2427, allocations: 0.7188 kB / 384.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.243, allocations: 53.17 kB / 384.2 MB, free: 10.33 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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 0.0001147/0.2432, allocations: 115.4 kB / 384.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002893/0.2434, allocations: 185.8 kB / 384.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2435, allocations: 1.344 kB / 384.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.2436, allocations: 79 kB / 384.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2439, allocations: 25.14 kB / 384.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004864/0.2444, allocations: 364.8 kB / 385 MB, free: 9.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.2445, allocations: 0.7286 MB / 385.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.2446, allocations: 22.81 kB / 385.7 MB, free: 9.285 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2446, allocations: 5.156 kB / 385.7 MB, free: 9.281 MB / 318.1 MB Notification: Performance of Templates: time 0.004145/0.2487, allocations: 2.392 MB / 388.1 MB, free: 9.07 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches