Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001368/0.001368, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.001435/0.001435, allocations: 214.9 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 207.7 MB / 235.3 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.91 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2827, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002832/0.2856, allocations: 1.453 MB / 397.8 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006472/0.2862, allocations: 239.2 kB / 398 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.2863, allocations: 2.344 kB / 398 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.2864, allocations: 30.34 kB / 398 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.057e-05/0.2865, allocations: 17.92 kB / 398.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.2869, allocations: 116.7 kB / 398.2 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.2873, allocations: 266.6 kB / 398.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.2875, allocations: 139 kB / 398.6 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2876, allocations: 90 kB / 398.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2878, allocations: 84.58 kB / 398.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.414e-05/0.2878, allocations: 21.81 kB / 398.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.878e-05/0.2879, allocations: 28.12 kB / 398.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.288, allocations: 60.06 kB / 398.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.03e-05/0.2881, allocations: 80.3 kB / 398.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.2884, allocations: 244.7 kB / 399.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2884, allocations: 5.438 kB / 399.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2884, allocations: 0 / 399.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.2884, allocations: 0 / 399.2 MB, free: 7.148 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006145/0.289, allocations: 415.5 kB / 399.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.2891, allocations: 13.83 kB / 399.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.41e-05/0.2891, allocations: 60.05 kB / 399.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/0.2892, allocations: 23.58 kB / 399.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.2895, allocations: 162.6 kB / 399.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.2895, allocations: 21.55 kB / 399.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.2895, allocations: 30.77 kB / 399.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.29, allocations: 240.9 kB / 400.1 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.29, allocations: 3.938 kB / 400.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/0.29, allocations: 15.02 kB / 400.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.29, allocations: 5.469 kB / 400.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.2903, allocations: 157.4 kB / 400.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009105/0.2912, allocations: 0.6209 MB / 400.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.2915, allocations: 148 kB / 401.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.2916, allocations: 71.06 kB / 401.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.2917, allocations: 14.22 kB / 401.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.2919, allocations: 126.4 kB / 401.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.2919, allocations: 0 / 401.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004487/0.2923, allocations: 220.7 kB / 401.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.2923, allocations: 59.58 kB / 401.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.2924, allocations: 148.2 kB / 401.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.2925, allocations: 35.25 kB / 401.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.205e-05/0.2925, allocations: 139.5 kB / 401.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.2926, allocations: 61 kB / 401.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-05/0.2927, allocations: 76.69 kB / 402 MB, free: 5.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.205e-05/0.2928, allocations: 324.1 kB / 402.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2929, allocations: 66.14 kB / 402.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.293, allocations: 126.1 kB / 402.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.2932, allocations: 172.9 kB / 402.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2933, allocations: 1.406 kB / 402.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003571/0.2936, allocations: 248.6 kB / 402.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.2936, allocations: 6.75 kB / 402.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2936, allocations: 2.156 kB / 402.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.2937, allocations: 7.062 kB / 402.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.2938, allocations: 30.89 kB / 403 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.2938, allocations: 5.469 kB / 403 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.2939, allocations: 27.72 kB / 403 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.2939, allocations: 11.09 kB / 403 MB, free: 4.449 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001154/0.294, allocations: 167.5 kB / 403.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.298e-05/0.2941, allocations: 13.66 kB / 403.2 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003377/0.2944, allocations: 206.1 kB / 403.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.2944, allocations: 2.656 kB / 403.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2944, allocations: 0 / 403.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2944, allocations: 0.9688 kB / 403.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006435/0.2951, allocations: 0.5278 MB / 403.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2951, allocations: 0 / 403.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.482e-05/0.2951, allocations: 14.38 kB / 403.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2951, allocations: 5.281 kB / 403.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2952, allocations: 7.594 kB / 403.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2952, allocations: 0.9375 kB / 403.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2952, allocations: 3.938 kB / 403.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.2954, allocations: 278.9 kB / 404.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.633e-05/0.2955, allocations: 13.69 kB / 404.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.2955, allocations: 7.328 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.623e-05/0.2956, allocations: 5.453 kB / 404.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.2957, allocations: 30.11 kB / 404.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.2957, allocations: 10.8 kB / 404.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.598e-05/0.2957, allocations: 102.1 kB / 404.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2957, allocations: 0 / 404.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.296, allocations: 50.14 kB / 404.4 MB, free: 3.48 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005077/0.2965, allocations: 0.8155 MB / 405.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003687/0.2969, allocations: 173.3 kB / 405.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2969, allocations: 1.156 kB / 405.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.297, allocations: 75.38 kB / 405.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.2974, allocations: 39.52 kB / 405.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.2993, allocations: 2.007 MB / 407.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.2994, allocations: 122 kB / 407.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.294e-05/0.2995, allocations: 26.84 kB / 407.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2996, allocations: 58.09 kB / 407.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2996, allocations: 3.938 kB / 407.7 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.3313, allocations: 4.334 MB / 412.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.85, allocations: 9 kB / 412.1 MB, free: 15.07 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --stepSize=0.000998801 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.27395331300795]