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.0008043/0.0008043, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008545/0.0008545, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8773/0.8773, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.035e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002352/0.002372, allocations: 1.667 MB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006817/0.003054, allocations: 287.1 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.146e-05/0.003135, allocations: 7.938 kB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.003251, allocations: 27.73 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.465e-05/0.003286, allocations: 19.73 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.00363, allocations: 127.8 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.003874, allocations: 279.4 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.004093, allocations: 159.5 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.004201, allocations: 143.7 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.567e-05/0.004297, allocations: 71.75 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.004325, allocations: 24 kB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.004381, allocations: 28 kB / 327.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.965e-05/0.004431, allocations: 59.81 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.145e-05/0.004492, allocations: 67.81 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.004728, allocations: 271.1 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.00473, allocations: 0 / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.004732, allocations: 4 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.004737, allocations: 0 / 327.7 MB, free: 12.73 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.0004981/0.005235, allocations: 420.1 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.005273, allocations: 16.02 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.573e-05/0.005319, allocations: 58.73 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.005485, allocations: 36.77 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.005683, allocations: 169.5 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.005709, allocations: 20.88 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.005733, allocations: 32.38 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.006026, allocations: 269.9 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.006036, allocations: 12.05 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.006053, allocations: 8.375 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.00606, allocations: 12.12 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.006252, allocations: 161.9 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007714/0.007024, allocations: 0.8712 MB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.007458, allocations: 157.3 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.116e-05/0.007529, allocations: 73.78 kB / 330 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.007546, allocations: 7.938 kB / 330 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.007695, allocations: 147.3 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.082e-06/0.007696, allocations: 0 / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003027/0.007999, allocations: 218.4 kB / 330.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.008044, allocations: 93.03 kB / 330.5 MB, free: 9.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.173e-05/0.008126, allocations: 156.3 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.008147, allocations: 41.69 kB / 330.7 MB, free: 9.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.384e-05/0.008211, allocations: 140.8 kB / 330.8 MB, free: 9.426 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.008244, allocations: 59.53 kB / 330.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.008308, allocations: 89.58 kB / 331 MB, free: 9.273 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.261e-05/0.008381, allocations: 326.8 kB / 331.3 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.302e-05/0.008454, allocations: 63.97 kB / 331.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.953e-05/0.008553, allocations: 136.5 kB / 331.5 MB, free: 8.719 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.008718, allocations: 189 kB / 331.7 MB, free: 8.504 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.008722, allocations: 3.938 kB / 331.7 MB, free: 8.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000242/0.008964, allocations: 257.3 kB / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.008975, allocations: 4 kB / 331.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.00898, allocations: 4 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.008992, allocations: 4.281 kB / 331.9 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.231e-05/0.009074, allocations: 35.92 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.009082, allocations: 11.97 kB / 332 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.518e-05/0.009137, allocations: 31.78 kB / 332 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.009148, allocations: 8 kB / 332 MB, free: 8.145 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,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 9.967e-05/0.009248, allocations: 169.6 kB / 332.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.00926, allocations: 11.91 kB / 332.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.009291, allocations: 20.94 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.009295, allocations: 4 kB / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.009299, allocations: 0 / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.009303, allocations: 7.984 kB / 332.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004338/0.009737, allocations: 0.5343 MB / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.009743, allocations: 7.938 kB / 332.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.654e-05/0.0098, allocations: 11.98 kB / 332.8 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.009804, allocations: 4 kB / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.009816, allocations: 4 kB / 332.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.009819, allocations: 7.938 kB / 332.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.00982, allocations: 3.938 kB / 332.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.01003, allocations: 276.1 kB / 333.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.01004, allocations: 15.84 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.01006, allocations: 12 kB / 333.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.823e-05/0.01011, allocations: 3.984 kB / 333.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.986e-05/0.01016, allocations: 23.91 kB / 333.1 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.01017, allocations: 12 kB / 333.1 MB, free: 6.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.0102, allocations: 95.27 kB / 333.2 MB, free: 6.848 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0102, allocations: 0 / 333.2 MB, free: 6.848 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001855/0.01039, allocations: 51.84 kB / 333.3 MB, free: 6.797 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: 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.0003416/0.01073, allocations: 0.809 MB / 334.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002081/0.01094, allocations: 179.6 kB / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01094, allocations: 0 / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.104e-05/0.01101, allocations: 59.92 kB / 334.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001918/0.0112, allocations: 27.92 kB / 334.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.01256, allocations: 2.087 MB / 336.4 MB, free: 3.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.302e-05/0.01264, allocations: 125.5 kB / 336.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.178e-05/0.01269, allocations: 29.92 kB / 336.6 MB, free: 3.297 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.321e-05/0.01276, allocations: 60.48 kB / 336.6 MB, free: 3.234 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01276, allocations: 0 / 336.6 MB, free: 3.234 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01467/0.02743, allocations: 4.3 MB / 340.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.702/6.73, allocations: 3.938 kB / 341 MB, free: 15.06 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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: 8.354692896828055]