Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001819/0.001826, allocations: 200.6 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009234/0.0009237, allocations: 97.27 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002552/0.0002553, allocations: 4 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2346, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002112/0.2368, allocations: 1.413 MB / 413.5 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007184/0.2376, allocations: 396.7 kB / 413.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2377, allocations: 8.781 kB / 413.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.2379, allocations: 7.875 kB / 413.9 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.492e-05/0.238, allocations: 22.5 kB / 413.9 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004698/0.2385, allocations: 99.91 kB / 414 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.2388, allocations: 251.5 kB / 414.2 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003398/0.2391, allocations: 167 kB / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.385e-05/0.2392, allocations: 63.72 kB / 414.4 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.2394, allocations: 83.55 kB / 414.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.2394, allocations: 8 kB / 414.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.567e-05/0.2395, allocations: 23.98 kB / 414.6 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.2396, allocations: 43.77 kB / 414.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.028e-05/0.2397, allocations: 109.2 kB / 414.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.24, allocations: 211.2 kB / 414.9 MB, free: 23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.24, allocations: 0 / 414.9 MB, free: 23 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.24, allocations: 0 / 414.9 MB, free: 23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.24, allocations: 0 / 414.9 MB, free: 23 MB / 298.7 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.0006329/0.2407, allocations: 452.3 kB / 415.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.2407, allocations: 8.031 kB / 415.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.2408, allocations: 24.66 kB / 415.4 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.241, allocations: 236 kB / 415.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.2411, allocations: 20.94 kB / 415.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.2411, allocations: 28.38 kB / 415.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.2415, allocations: 266.6 kB / 415.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2416, allocations: 4.172 kB / 415.9 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.2416, allocations: 15.94 kB / 415.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.2416, allocations: 4 kB / 416 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.2419, allocations: 169.5 kB / 416.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009326/0.2428, allocations: 0.9711 MB / 417.1 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.2431, allocations: 169.3 kB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.544e-05/0.2432, allocations: 85.72 kB / 417.3 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.2432, allocations: 4 kB / 417.3 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.2434, allocations: 137 kB / 417.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.2434, allocations: 4 kB / 417.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000411/0.2438, allocations: 227.8 kB / 417.7 MB, free: 19.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.2439, allocations: 81.11 kB / 417.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.179e-05/0.244, allocations: 153.5 kB / 417.9 MB, free: 19.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.244, allocations: 37.7 kB / 418 MB, free: 19.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.2441, allocations: 140.5 kB / 418.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.2441, allocations: 55.36 kB / 418.2 MB, free: 19.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.54e-05/0.2442, allocations: 4 kB / 418.2 MB, free: 19.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.2442, allocations: 338.8 kB / 418.5 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.2444, allocations: 63.91 kB / 418.6 MB, free: 19.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.2446, allocations: 140.3 kB / 418.7 MB, free: 18.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.2449, allocations: 189 kB / 418.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2449, allocations: 0 / 418.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003182/0.2452, allocations: 255.8 kB / 419.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2453, allocations: 8 kB / 419.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2453, allocations: 4 kB / 419.1 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2453, allocations: 4 kB / 419.1 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2454, allocations: 31.91 kB / 419.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.2455, allocations: 8.281 kB / 419.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.2456, allocations: 31.69 kB / 419.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.2456, allocations: 12 kB / 419.2 MB, free: 18.35 MB / 298.7 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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.0001255/0.2457, allocations: 169.6 kB / 419.4 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.2458, allocations: 11.81 kB / 419.4 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.2461, allocations: 190.3 kB / 419.6 MB, free: 17.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2461, allocations: 7.984 kB / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2461, allocations: 4 kB / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2461, allocations: 0 / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005934/0.2467, allocations: 0.596 MB / 420.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2467, allocations: 4 kB / 420.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.2468, allocations: 19.92 kB / 420.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.2468, allocations: 3.938 kB / 420.2 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.2468, allocations: 4 kB / 420.2 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.2468, allocations: 8 kB / 420.2 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2468, allocations: 0 / 420.2 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.2471, allocations: 279 kB / 420.5 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.2471, allocations: 92.95 kB / 420.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.2472, allocations: 7.938 kB / 420.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-05/0.2472, allocations: 11.98 kB / 420.6 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.2473, allocations: 27.97 kB / 420.6 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.2473, allocations: 4 kB / 420.6 MB, free: 16.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.386e-05/0.2474, allocations: 103.7 kB / 420.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2474, allocations: 0 / 420.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002973/0.2477, allocations: 55.78 kB / 420.8 MB, free: 16.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001766/0.2479, allocations: 115.2 kB / 420.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.2482, allocations: 191 kB / 421.1 MB, free: 16.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2482, allocations: 0 / 421.1 MB, free: 16.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.2483, allocations: 83.91 kB / 421.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.2486, allocations: 23.92 kB / 421.2 MB, free: 16.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006303/0.2492, allocations: 416.1 kB / 421.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.2495, allocations: 0.748 MB / 422.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.35e-05/0.2496, allocations: 21.95 kB / 422.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.161e-05/0.2496, allocations: 27.36 kB / 422.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2497, allocations: 0 / 422.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of Templates: time 0.004521/0.2542, allocations: 1.739 MB / 424.1 MB, free: 13.26 MB / 298.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches