Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 102.5 kB / 17.74 MB, free: 5.32 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.002145/0.002145, allocations: 197.2 kB / 18.67 MB, free: 4.395 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.397/1.397, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 51.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2345, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002552/0.2371, allocations: 1.711 MB / 403.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000584/0.2377, allocations: 287.2 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.342e-05/0.2378, allocations: 4 kB / 403.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.2379, allocations: 23.69 kB / 403.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.73e-05/0.238, allocations: 31.72 kB / 403.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.2383, allocations: 119.8 kB / 403.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.2386, allocations: 267.5 kB / 403.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.2389, allocations: 181.5 kB / 404 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.471e-05/0.239, allocations: 91.64 kB / 404.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2391, allocations: 99.58 kB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.2392, allocations: 24 kB / 404.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.2392, allocations: 35.94 kB / 404.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.75e-05/0.2393, allocations: 51.89 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.467e-05/0.2394, allocations: 111.5 kB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.2397, allocations: 247.1 kB / 404.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2397, allocations: 4 kB / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2397, allocations: 0 / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2397, allocations: 0 / 404.6 MB, free: 5.602 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006016/0.2403, allocations: 487.9 kB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2403, allocations: 11.89 kB / 405.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.2404, allocations: 32.59 kB / 405.2 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.2407, allocations: 232 kB / 405.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.2407, allocations: 24.94 kB / 405.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.2407, allocations: 28.38 kB / 405.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.2412, allocations: 278.5 kB / 405.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2412, allocations: 192 / 405.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.2412, allocations: 15.94 kB / 405.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.2412, allocations: 8 kB / 405.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.2415, allocations: 169.6 kB / 405.9 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.2426, allocations: 0.9594 MB / 406.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.2428, allocations: 169.5 kB / 407 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.243, allocations: 87.12 kB / 407.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.243, allocations: 7.984 kB / 407.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.2432, allocations: 141 kB / 407.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.2432, allocations: 0 / 407.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004129/0.2436, allocations: 223 kB / 407.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.2437, allocations: 85.09 kB / 407.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.2438, allocations: 152.3 kB / 407.7 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.2438, allocations: 37.69 kB / 407.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.2439, allocations: 140.6 kB / 407.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.47e-05/0.244, allocations: 59.34 kB / 407.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.253e-05/0.2441, allocations: 85.58 kB / 408 MB, free: 1.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2442, allocations: 330.7 kB / 408.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.2443, allocations: 59.97 kB / 408.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.2445, allocations: 148.3 kB / 408.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.2447, allocations: 208.8 kB / 408.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2447, allocations: 3.938 kB / 408.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003707/0.2451, allocations: 245.2 kB / 409 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2451, allocations: 4.281 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2452, allocations: 8 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2452, allocations: 7.984 kB / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2453, allocations: 35.92 kB / 409 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2453, allocations: 4 kB / 409.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.2454, allocations: 27.72 kB / 409.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.2455, allocations: 12 kB / 409.1 MB, free: 0.8125 MB / 318.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.0001364/0.2456, allocations: 161.7 kB / 409.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.2457, allocations: 11.81 kB / 409.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.246, allocations: 198.4 kB / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.246, allocations: 0 / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.246, allocations: 0 / 409.5 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.123e-05/0.246, allocations: 92.86 kB / 409.5 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.2461, allocations: 11.98 kB / 409.6 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.782e-05/0.2462, allocations: 11.94 kB / 409.6 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.2462, allocations: 23.91 kB / 409.6 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003939/0.2466, allocations: 352.2 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003361/0.247, allocations: 429.8 kB / 410.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001229/0.2471, allocations: 75.97 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.324e-05/0.2472, allocations: 103.2 kB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of Backend: time 2e-07/0.2472, allocations: 0 / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005683/0.2477, allocations: 206.5 kB / 410.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006552/0.2484, allocations: 0.7505 MB / 411.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Templates: time 0.004669/0.2531, allocations: 1.994 MB / 413.5 MB, free: 12.32 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches