Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 218.2 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.418/1.418, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 55.91 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2482, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003454/0.2516, allocations: 1.647 MB / 432.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2527, allocations: 299.1 kB / 433 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.2528, allocations: 7.938 kB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.253, allocations: 19.75 kB / 433 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.456e-05/0.2531, allocations: 27.72 kB / 433.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.2536, allocations: 123.8 kB / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.254, allocations: 279.4 kB / 433.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003184/0.2543, allocations: 161.1 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.2544, allocations: 87.7 kB / 433.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.2545, allocations: 83.59 kB / 433.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.779e-05/0.2546, allocations: 24 kB / 433.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.2546, allocations: 35.88 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.992e-05/0.2547, allocations: 59.88 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.461e-05/0.2548, allocations: 83.59 kB / 434 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.2551, allocations: 262.9 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2551, allocations: 4 kB / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2551, allocations: 0 / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2552, allocations: 0 / 434.2 MB, free: 3.488 MB / 334.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.0006372/0.2558, allocations: 421.2 kB / 434.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2558, allocations: 8.031 kB / 434.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.962e-05/0.2559, allocations: 62.72 kB / 434.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002344/0.2561, allocations: 36.78 kB / 434.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.2564, allocations: 178.2 kB / 434.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.2565, allocations: 24.88 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.2565, allocations: 28.38 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.2569, allocations: 269.7 kB / 435.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.257, allocations: 3.938 kB / 435.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.257, allocations: 8 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-06/0.257, allocations: 8 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.2573, allocations: 161.6 kB / 435.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.2584, allocations: 0.8742 MB / 436.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.2586, allocations: 165.4 kB / 436.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.2587, allocations: 73.62 kB / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.2588, allocations: 0 / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.259, allocations: 146.6 kB / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.263e-06/0.259, allocations: 0 / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004307/0.2594, allocations: 225 kB / 436.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.2595, allocations: 81.11 kB / 437 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.2596, allocations: 161.6 kB / 437.1 MB, free: 388 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.2596, allocations: 41.69 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2598, allocations: 148.9 kB / 437.3 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.2598, allocations: 55.55 kB / 437.4 MB, free: 128 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.2599, allocations: 81.67 kB / 437.4 MB, free: 40 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2601, allocations: 330.8 kB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.2602, allocations: 63.75 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.2603, allocations: 136.5 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.2606, allocations: 196.8 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2606, allocations: 4 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003866/0.261, allocations: 253.3 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.261, allocations: 4.281 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.261, allocations: 8 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.261, allocations: 4 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.2612, allocations: 27.92 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.2612, allocations: 7.984 kB / 438.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.501e-05/0.2613, allocations: 35.72 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.2613, allocations: 12 kB / 438.5 MB, free: 14.9 MB / 350.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.000155/0.2615, allocations: 157.7 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.2615, allocations: 15.91 kB / 438.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.954e-05/0.2615, allocations: 20.94 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2615, allocations: 4 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.2615, allocations: 4 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.2615, allocations: 0 / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.2623, allocations: 0.5353 MB / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2623, allocations: 0 / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.2623, allocations: 15.98 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2623, allocations: 0 / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2623, allocations: 15.88 kB / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2623, allocations: 0 / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2623, allocations: 0 / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.2627, allocations: 272.2 kB / 439.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.2627, allocations: 31.72 kB / 439.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.2627, allocations: 7.938 kB / 439.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.679e-05/0.2628, allocations: 11.98 kB / 439.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.2629, allocations: 15.97 kB / 439.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2629, allocations: 12 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.289e-05/0.2629, allocations: 98.36 kB / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2629, allocations: 0 / 439.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.2632, allocations: 55.84 kB / 439.8 MB, free: 13.56 MB / 350.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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0005911/0.2638, allocations: 0.8251 MB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002982/0.2641, allocations: 171.7 kB / 440.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.2641, allocations: 4 kB / 440.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.2642, allocations: 63.92 kB / 440.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2645, allocations: 26.72 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.2668, allocations: 2.073 MB / 442.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.2669, allocations: 121.6 kB / 443 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.624e-05/0.267, allocations: 25.94 kB / 443.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2671, allocations: 55.42 kB / 443.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2671, allocations: 0 / 443.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.2969, allocations: 4.164 MB / 447.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.93, allocations: 27.2 kB / 447.3 MB, free: 5.965 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.382063597906381]