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.001342/0.001342, allocations: 112.4 kB / 21.19 MB, free: 0.7031 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.001516/0.001516, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.616/1.616, allocations: 207.6 MB / 235.3 MB, free: 10 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.002064/0.002064, allocations: 58.58 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3906, allocations: 49.16 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003013/0.3936, allocations: 1.479 MB / 397.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000671/0.3943, allocations: 241.6 kB / 398 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3944, allocations: 6.625 kB / 398.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.3945, allocations: 26.64 kB / 398.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.3946, allocations: 18.25 kB / 398.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.3951, allocations: 118.8 kB / 398.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000396/0.3955, allocations: 266.7 kB / 398.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.3958, allocations: 146.6 kB / 398.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.3959, allocations: 87.64 kB / 398.7 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.3961, allocations: 99.89 kB / 398.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.3961, allocations: 22.34 kB / 398.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.606e-05/0.3962, allocations: 36.2 kB / 398.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-05/0.3963, allocations: 54.62 kB / 398.9 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.3964, allocations: 92.72 kB / 399 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.3968, allocations: 248.5 kB / 399.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3968, allocations: 1.094 kB / 399.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3968, allocations: 4 kB / 399.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.3968, allocations: 0 / 399.2 MB, free: 7.195 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.0008657/0.3977, allocations: 414.7 kB / 399.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.3977, allocations: 14.66 kB / 399.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.696e-05/0.3978, allocations: 55.14 kB / 399.7 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.288e-05/0.3979, allocations: 26.34 kB / 399.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.3982, allocations: 164.9 kB / 399.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.3983, allocations: 28.12 kB / 399.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.3983, allocations: 27.22 kB / 400 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.3989, allocations: 236.8 kB / 400.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.3989, allocations: 3.938 kB / 400.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.3989, allocations: 11.39 kB / 400.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.399, allocations: 5.531 kB / 400.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003564/0.3993, allocations: 162.4 kB / 400.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.4004, allocations: 0.6655 MB / 401 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.4007, allocations: 152.4 kB / 401.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.4008, allocations: 71.22 kB / 401.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.4008, allocations: 9.312 kB / 401.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.4011, allocations: 129.3 kB / 401.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.4011, allocations: 0 / 401.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004922/0.4016, allocations: 220.1 kB / 401.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.4016, allocations: 62.86 kB / 401.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.4017, allocations: 144.2 kB / 401.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.4018, allocations: 34.86 kB / 401.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.751e-05/0.4018, allocations: 134.8 kB / 402 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.4019, allocations: 57.42 kB / 402 MB, free: 5.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.402, allocations: 81.77 kB / 402.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.4021, allocations: 327.7 kB / 402.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.4022, allocations: 62.36 kB / 402.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.4024, allocations: 120.9 kB / 402.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.4026, allocations: 174.4 kB / 402.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4026, allocations: 0.6094 kB / 402.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004267/0.403, allocations: 252.1 kB / 403 MB, free: 4.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.403, allocations: 6.688 kB / 403 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4031, allocations: 1.688 kB / 403 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.4031, allocations: 3.562 kB / 403 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.4033, allocations: 33.47 kB / 403.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.4033, allocations: 7.438 kB / 403.1 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.4034, allocations: 31.25 kB / 403.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.4034, allocations: 13.81 kB / 403.1 MB, free: 4.473 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.0001462/0.4036, allocations: 155.2 kB / 403.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.4036, allocations: 16.84 kB / 403.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003517/0.4039, allocations: 200.3 kB / 403.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.4039, allocations: 2.375 kB / 403.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4039, allocations: 0 / 403.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.404, allocations: 1.062 kB / 403.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007183/0.4047, allocations: 0.5378 MB / 404 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4047, allocations: 0 / 404 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/0.4048, allocations: 19.03 kB / 404 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.4048, allocations: 1.656 kB / 404 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.4048, allocations: 11.31 kB / 404.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4048, allocations: 0.9375 kB / 404.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.4048, allocations: 4.734 kB / 404.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/0.4052, allocations: 280.4 kB / 404.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.4053, allocations: 17.45 kB / 404.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.4053, allocations: 6.375 kB / 404.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.4054, allocations: 9.641 kB / 404.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.4055, allocations: 26.44 kB / 404.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.4055, allocations: 6.984 kB / 404.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.918e-05/0.4056, allocations: 92.56 kB / 404.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4056, allocations: 0 / 404.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003853/0.406, allocations: 51.44 kB / 404.5 MB, free: 3.516 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.0005696/0.4066, allocations: 0.8188 MB / 405.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000333/0.4069, allocations: 172.1 kB / 405.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4069, allocations: 1.312 kB / 405.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.407, allocations: 78.36 kB / 405.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.4073, allocations: 35.94 kB / 405.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.4095, allocations: 2.012 MB / 407.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.4098, allocations: 0.7335 MB / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.4099, allocations: 25.84 kB / 408.4 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.41, allocations: 58.05 kB / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of SimCode: time 1.192e-06/0.41, allocations: 0 / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.4476, allocations: 3.931 MB / 412.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.67, allocations: 13.22 kB / 412.4 MB, free: 14.88 MB / 334.1 MB " [Timeout remaining time 647] (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: 15.377442948054522]