Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001272/0.001272, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.001213/0.001213, 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.45/1.45, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 43.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2387, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002865/0.2416, allocations: 1.662 MB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006761/0.2423, allocations: 287.1 kB / 402.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.693e-05/0.2424, allocations: 4 kB / 402.2 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.2426, allocations: 31.67 kB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.685e-05/0.2426, allocations: 19.78 kB / 402.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.2431, allocations: 119.8 kB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003653/0.2434, allocations: 275.5 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.2438, allocations: 192.6 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.2439, allocations: 103.6 kB / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.2441, allocations: 99.53 kB / 403 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.2441, allocations: 24 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.544e-05/0.2442, allocations: 32 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.2443, allocations: 55.83 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.2444, allocations: 99.52 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.2447, allocations: 257.9 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2448, allocations: 0 / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2448, allocations: 4 kB / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2448, allocations: 0 / 403.4 MB, free: 5.578 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.0007333/0.2455, allocations: 0.4983 MB / 403.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2456, allocations: 8.031 kB / 403.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.772e-05/0.2456, allocations: 58.72 kB / 404 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/0.2457, allocations: 24.8 kB / 404 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.246, allocations: 240 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.246, allocations: 20.94 kB / 404.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.2461, allocations: 32.38 kB / 404.3 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.2465, allocations: 274.5 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2466, allocations: 3.938 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.2466, allocations: 12 kB / 404.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.2466, allocations: 8 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.2469, allocations: 165.6 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.2481, allocations: 0.9674 MB / 405.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.2484, allocations: 181.3 kB / 405.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.2485, allocations: 81.69 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2486, allocations: 7.984 kB / 406 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.2488, allocations: 140.7 kB / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2488, allocations: 0 / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004495/0.2493, allocations: 225.3 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.2493, allocations: 81.11 kB / 406.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.2495, allocations: 161 kB / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.2495, allocations: 37.7 kB / 406.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2496, allocations: 140.8 kB / 406.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.2497, allocations: 63.59 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.2498, allocations: 85.67 kB / 406.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2499, allocations: 330.8 kB / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2501, allocations: 59.97 kB / 407.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.2503, allocations: 144.3 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/0.2506, allocations: 204.8 kB / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2506, allocations: 0 / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004009/0.251, allocations: 253.3 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.251, allocations: 4 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.251, allocations: 4.281 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.251, allocations: 8 kB / 407.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2512, allocations: 35.91 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2512, allocations: 7.938 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2513, allocations: 31.78 kB / 408 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.2513, allocations: 8 kB / 408 MB, free: 0.6875 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.0001526/0.2515, allocations: 161.7 kB / 408.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.2515, allocations: 19.84 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003456/0.2519, allocations: 194.3 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.2519, allocations: 4 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2519, allocations: 3.984 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2519, allocations: 0 / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007677/0.2527, allocations: 0.5947 MB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2527, allocations: 0 / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.487e-05/0.2528, allocations: 15.98 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.2528, allocations: 7.938 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2528, allocations: 7.938 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2528, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.2528, allocations: 4 kB / 409 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.2532, allocations: 284.1 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.2533, allocations: 96.95 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.2533, allocations: 7.922 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.2534, allocations: 8 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.2535, allocations: 27.97 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.2535, allocations: 8 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.804e-05/0.2536, allocations: 99.27 kB / 409.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2536, allocations: 0 / 409.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.2539, allocations: 51.89 kB / 409.6 MB, free: 14.99 MB / 334.1 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.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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.0007113/0.2546, allocations: 0.8385 MB / 410.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.255, allocations: 191.9 kB / 410.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.255, allocations: 0 / 410.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.2551, allocations: 83.91 kB / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.2554, allocations: 19.98 kB / 410.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.2578, allocations: 2.094 MB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.2583, allocations: 0.7402 MB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.564e-05/0.2584, allocations: 25.94 kB / 413.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2585, allocations: 59.42 kB / 413.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 3.647e-06/0.2585, allocations: 0 / 413.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.284, allocations: 3.76 MB / 417.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.39, allocations: 8.312 kB / 417.4 MB, free: 7.07 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches