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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001819/0.001819, allocations: 195.9 kB / 18 MB, free: 4.965 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.001461, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2399, allocations: 49.44 MB / 400.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002871/0.2428, allocations: 1.47 MB / 401.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007252/0.2436, allocations: 278.3 kB / 402 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.02e-05/0.2437, allocations: 3.938 kB / 402 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.2438, allocations: 27.73 kB / 402 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.416e-05/0.2439, allocations: 19.8 kB / 402 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.2443, allocations: 107.8 kB / 402.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.2447, allocations: 267.5 kB / 402.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.245, allocations: 173.3 kB / 402.5 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.2451, allocations: 79.78 kB / 402.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2453, allocations: 91.59 kB / 402.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.2453, allocations: 31.94 kB / 402.7 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-05/0.2454, allocations: 35.92 kB / 402.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.827e-05/0.2455, allocations: 51.89 kB / 402.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2456, allocations: 91.53 kB / 402.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.2459, allocations: 247 kB / 403.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.2459, allocations: 0 / 403.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2459, allocations: 4 kB / 403.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.246, allocations: 0 / 403.2 MB, free: 6.031 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.0007193/0.2467, allocations: 486.2 kB / 403.6 MB, free: 5.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.2467, allocations: 12.03 kB / 403.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.34e-05/0.2468, allocations: 58.73 kB / 403.7 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.2469, allocations: 28.78 kB / 403.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.2472, allocations: 232 kB / 404 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.2472, allocations: 20.94 kB / 404 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.2473, allocations: 36.28 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004242/0.2477, allocations: 240 kB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.2477, allocations: 7.938 kB / 404.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.2478, allocations: 8 kB / 404.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2478, allocations: 8 kB / 404.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.2481, allocations: 157.6 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2492, allocations: 0.6936 MB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.2495, allocations: 166.8 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.2496, allocations: 80.83 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.2497, allocations: 7.938 kB / 405.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.2499, allocations: 123 kB / 405.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2499, allocations: 0 / 405.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000474/0.2504, allocations: 217.4 kB / 405.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.2505, allocations: 59.41 kB / 405.8 MB, free: 3.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.2506, allocations: 149.9 kB / 405.9 MB, free: 3.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.2506, allocations: 33.7 kB / 405.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2508, allocations: 140.8 kB / 406.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.709e-05/0.2508, allocations: 59.52 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.251, allocations: 81.95 kB / 406.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2511, allocations: 322.8 kB / 406.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2513, allocations: 68.62 kB / 406.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.2514, allocations: 128.1 kB / 406.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002599/0.2517, allocations: 175.2 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2517, allocations: 0 / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003894/0.2521, allocations: 249.2 kB / 407.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2521, allocations: 8.219 kB / 407.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2522, allocations: 4 kB / 407.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.2522, allocations: 4 kB / 407.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2523, allocations: 31.92 kB / 407.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2523, allocations: 7.938 kB / 407.2 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.303e-05/0.2524, allocations: 23.83 kB / 407.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.2525, allocations: 15.98 kB / 407.2 MB, free: 1.664 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.0001527/0.2526, allocations: 157.7 kB / 407.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.2527, allocations: 15.91 kB / 407.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003567/0.253, allocations: 202.3 kB / 407.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.253, allocations: 4 kB / 407.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/0.2531, allocations: 0 / 407.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2531, allocations: 0 / 407.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007381/0.2538, allocations: 0.5647 MB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2538, allocations: 0 / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.729e-05/0.2539, allocations: 19.98 kB / 408.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2539, allocations: 0 / 408.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.254, allocations: 8 kB / 408.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.254, allocations: 3.938 kB / 408.2 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.254, allocations: 3.938 kB / 408.2 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003246/0.2543, allocations: 279.3 kB / 408.5 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.2544, allocations: 93 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.2544, allocations: 4 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.2545, allocations: 11.98 kB / 408.6 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.2546, allocations: 23.91 kB / 408.6 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2546, allocations: 12 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.399e-05/0.2547, allocations: 93.52 kB / 408.7 MB, free: 84 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2547, allocations: 0 / 408.7 MB, free: 84 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.255, allocations: 51.89 kB / 408.8 MB, free: 32 kB / 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.0007478/0.2557, allocations: 0.822 MB / 409.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.2561, allocations: 188 kB / 409.8 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2561, allocations: 0 / 409.8 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.2562, allocations: 87.84 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2565, allocations: 27.92 kB / 409.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.2589, allocations: 2.016 MB / 411.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.2593, allocations: 0.7324 MB / 412.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.304e-05/0.2594, allocations: 25.94 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.2595, allocations: 67.34 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2595, allocations: 0 / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02564/0.2852, allocations: 3.655 MB / 416.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.093/8.378, allocations: 7.797 kB / 416.4 MB, free: 8.305 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > 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