Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.0009082/0.0009082, allocations: 92.27 kB / 17.31 MB, free: 6.535 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.001012/0.001012, allocations: 179.2 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002296, allocations: 7.062 kB / 302.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0745/0.07474, allocations: 50.41 MB / 352.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001506/0.07627, allocations: 1.228 MB / 353.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006237/0.07691, allocations: 299.1 kB / 354 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.837e-05/0.07701, allocations: 4 kB / 354 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.262e-05/0.07711, allocations: 15.81 kB / 354 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.936e-05/0.07715, allocations: 11.86 kB / 354 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.07748, allocations: 99.91 kB / 354.1 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.07777, allocations: 239.5 kB / 354.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.07803, allocations: 142.2 kB / 354.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.996e-05/0.07812, allocations: 63.77 kB / 354.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.07824, allocations: 75.56 kB / 354.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.07827, allocations: 12 kB / 354.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.837e-05/0.07835, allocations: 23.92 kB / 354.7 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.0784, allocations: 43.89 kB / 354.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.974e-05/0.0785, allocations: 101.2 kB / 354.8 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.07869, allocations: 155.6 kB / 355 MB, free: 1.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.0787, allocations: 0 / 355 MB, free: 1.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.07871, allocations: 4 kB / 355 MB, free: 1.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.07872, allocations: 0 / 355 MB, free: 1.227 MB / 286.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.0005605/0.07928, allocations: 439 kB / 355.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.07932, allocations: 12.03 kB / 355.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.541e-05/0.07939, allocations: 24.66 kB / 355.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.07962, allocations: 224 kB / 355.6 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.394e-05/0.07967, allocations: 20.94 kB / 355.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.07972, allocations: 32.36 kB / 355.7 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.08014, allocations: 240 kB / 355.9 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.08016, allocations: 192 / 355.9 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.0802, allocations: 15.94 kB / 355.9 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.08021, allocations: 8 kB / 356 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.08052, allocations: 157.7 kB / 356.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00097/0.08149, allocations: 0.7128 MB / 356.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.0818, allocations: 158.9 kB / 357 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.08195, allocations: 84.77 kB / 357.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.08197, allocations: 4 kB / 357.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.08217, allocations: 119.3 kB / 357.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.08218, allocations: 4 kB / 357.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004078/0.0826, allocations: 211.6 kB / 357.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.08265, allocations: 59.27 kB / 357.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.08277, allocations: 161 kB / 357.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.08281, allocations: 33.7 kB / 357.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.0829, allocations: 128.6 kB / 357.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.139e-05/0.08295, allocations: 67.12 kB / 357.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.08302, allocations: 53.69 kB / 357.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.08315, allocations: 330.8 kB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.08328, allocations: 60.62 kB / 358.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.08345, allocations: 128.1 kB / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.08369, allocations: 175.2 kB / 358.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.0837, allocations: 0 / 358.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003768/0.08409, allocations: 249.2 kB / 358.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.08411, allocations: 4 kB / 358.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.08412, allocations: 7.938 kB / 358.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.08414, allocations: 4 kB / 358.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.08427, allocations: 31.92 kB / 358.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.08429, allocations: 3.984 kB / 358.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.772e-05/0.08439, allocations: 27.75 kB / 358.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.08443, allocations: 16.22 kB / 358.9 MB, free: 13 MB / 302.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.0001477/0.08458, allocations: 161.7 kB / 359.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.08461, allocations: 11.84 kB / 359.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003397/0.08496, allocations: 198.2 kB / 359.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.08497, allocations: 4 kB / 359.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.08498, allocations: 3.984 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.08499, allocations: 3.938 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007197/0.08572, allocations: 0.5722 MB / 359.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.08573, allocations: 0 / 359.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.779e-05/0.08581, allocations: 12 kB / 359.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.08583, allocations: 4 kB / 359.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.08584, allocations: 7.984 kB / 359.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.08585, allocations: 0 / 359.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.08586, allocations: 3.938 kB / 359.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.08616, allocations: 283.7 kB / 360.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.08621, allocations: 92.86 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.08624, allocations: 4 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.799e-05/0.08635, allocations: 15.98 kB / 360.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/0.08642, allocations: 23.91 kB / 360.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.08644, allocations: 8 kB / 360.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.378e-05/0.0865, allocations: 95.27 kB / 360.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08651, allocations: 0 / 360.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.08681, allocations: 51.84 kB / 360.4 MB, free: 11.36 MB / 302.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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0001192/0.08694, allocations: 111.2 kB / 360.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.08724, allocations: 179.7 kB / 360.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.08725, allocations: 0 / 360.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.08738, allocations: 79.92 kB / 360.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.08767, allocations: 31.45 kB / 360.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000544/0.08822, allocations: 416.7 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.08848, allocations: 0.7287 MB / 362 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.08854, allocations: 23.44 kB / 362 MB, free: 9.742 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.08855, allocations: 7.938 kB / 362 MB, free: 9.734 MB / 302.1 MB Notification: Performance of Templates: time 0.003873/0.09243, allocations: 2.312 MB / 364.3 MB, free: 7.426 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches