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.001249/0.001249, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001367/0.001367, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.454/1.454, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001592/0.001592, allocations: 48.06 kB / 373 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1003, allocations: 53.33 MB / 426.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003291/0.1036, allocations: 1.684 MB / 428 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000761/0.1044, allocations: 287.1 kB / 428.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1045, allocations: 4 kB / 428.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.1047, allocations: 31.67 kB / 428.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.071e-05/0.1047, allocations: 19.8 kB / 428.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.1052, allocations: 119.8 kB / 428.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003932/0.1056, allocations: 267.6 kB / 428.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.1059, allocations: 166.8 kB / 428.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.106, allocations: 99.69 kB / 428.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.1062, allocations: 103.5 kB / 429.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.404e-05/0.1062, allocations: 28 kB / 429.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.038e-05/0.1063, allocations: 28 kB / 429.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.1064, allocations: 59.83 kB / 429.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1065, allocations: 103.5 kB / 429.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.1068, allocations: 258.9 kB / 429.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1068, allocations: 3.938 kB / 429.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1068, allocations: 4 kB / 429.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.1068, allocations: 0 / 429.5 MB, free: 1.66 MB / 350.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.0007195/0.1076, allocations: 0.4905 MB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1076, allocations: 12.03 kB / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.925e-05/0.1077, allocations: 62.72 kB / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.1079, allocations: 36.78 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.1082, allocations: 228.1 kB / 430.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.1083, allocations: 20.94 kB / 430.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.891e-05/0.1083, allocations: 24.38 kB / 430.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.1088, allocations: 278.5 kB / 430.7 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1088, allocations: 3.938 kB / 430.7 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.1088, allocations: 8 kB / 430.7 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1088, allocations: 8 kB / 430.7 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.1091, allocations: 161.6 kB / 430.8 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1751/0.2842, allocations: 0.9564 MB / 431.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002884/0.2844, allocations: 163.2 kB / 432 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.2846, allocations: 72.95 kB / 432 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.2846, allocations: 10.33 kB / 432 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.2848, allocations: 132.2 kB / 432.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2848, allocations: 0 / 432.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004458/0.2853, allocations: 219.7 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.2853, allocations: 86.17 kB / 432.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2854, allocations: 157.5 kB / 432.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2854, allocations: 39.59 kB / 432.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.2855, allocations: 145.2 kB / 432.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.2855, allocations: 67.06 kB / 432.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.666e-05/0.2856, allocations: 74.97 kB / 432.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.2857, allocations: 328.4 kB / 433.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.2858, allocations: 68.89 kB / 433.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.2859, allocations: 142.8 kB / 433.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.2862, allocations: 197.1 kB / 433.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2862, allocations: 1.344 kB / 433.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003339/0.2865, allocations: 258.9 kB / 433.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.2865, allocations: 5.031 kB / 433.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2865, allocations: 7.812 kB / 433.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.2865, allocations: 2.281 kB / 433.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.2867, allocations: 29.59 kB / 434 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.2867, allocations: 3.781 kB / 434 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.041e-05/0.2868, allocations: 34.47 kB / 434 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.2868, allocations: 15.38 kB / 434 MB, free: 9.492 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.0001052/0.2869, allocations: 157 kB / 434.2 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.2869, allocations: 16.62 kB / 434.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.287, allocations: 19.19 kB / 434.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.287, allocations: 9.906 kB / 434.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.287, allocations: 0 / 434.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.287, allocations: 5.953 kB / 434.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005643/0.2875, allocations: 0.5749 MB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2875, allocations: 0 / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.144e-05/0.2876, allocations: 21.17 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2876, allocations: 5.656 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.2876, allocations: 1.719 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2876, allocations: 1.5 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2876, allocations: 0.9844 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.2879, allocations: 279.4 kB / 435.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.745e-05/0.2879, allocations: 97.69 kB / 435.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.2879, allocations: 5.188 kB / 435.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.45e-05/0.288, allocations: 10.97 kB / 435.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.157e-05/0.2881, allocations: 22.91 kB / 435.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.2881, allocations: 10.14 kB / 435.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.142e-05/0.2882, allocations: 100.3 kB / 435.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2882, allocations: 0 / 435.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.2884, allocations: 54.36 kB / 435.4 MB, free: 8.668 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.0004264/0.2889, allocations: 0.808 MB / 436.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.2892, allocations: 170.7 kB / 436.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2892, allocations: 1.062 kB / 436.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.2893, allocations: 79.97 kB / 436.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.2896, allocations: 29.08 kB / 436.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.2914, allocations: 2.063 MB / 438.5 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.2916, allocations: 0.7403 MB / 439.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.146e-05/0.2917, allocations: 20.44 kB / 439.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.356e-05/0.2918, allocations: 56.5 kB / 439.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2918, allocations: 4 kB / 439.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.3177, allocations: 3.523 MB / 442.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/8.117, allocations: 7.141 kB / 442.9 MB, free: 5.02 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.478402281180024]