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.005307/0.005307, allocations: 114.2 kB / 21.97 MB, free: 5.227 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.001437/0.001437, allocations: 213.2 kB / 25.28 MB, free: 3.246 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.461/1.461, allocations: 207.6 MB / 236 MB, free: 9.984 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="cs",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.001877/0.001877, allocations: 51.94 kB / 347.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3058, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00258/0.3084, allocations: 1.485 MB / 398.6 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000637/0.309, allocations: 240.7 kB / 398.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.786e-05/0.3091, allocations: 11.94 kB / 398.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.3092, allocations: 25.42 kB / 398.9 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.115e-05/0.3093, allocations: 14.48 kB / 398.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.3097, allocations: 123 kB / 399 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.3101, allocations: 267 kB / 399.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002815/0.3103, allocations: 139 kB / 399.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3105, allocations: 92.03 kB / 399.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.3106, allocations: 102.5 kB / 399.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.431e-05/0.3107, allocations: 22.56 kB / 399.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.147e-05/0.3108, allocations: 28.78 kB / 399.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.877e-05/0.3108, allocations: 54.66 kB / 399.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3109, allocations: 96.67 kB / 399.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.3113, allocations: 239.5 kB / 400 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3113, allocations: 1.438 kB / 400 MB, free: 7.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3113, allocations: 0 / 400 MB, free: 7.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3113, allocations: 0 / 400 MB, free: 7.207 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.0006925/0.312, allocations: 427.3 kB / 400.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.312, allocations: 13.45 kB / 400.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.344e-05/0.3121, allocations: 5.969 kB / 400.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.3121, allocations: 56.45 kB / 400.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.996e-05/0.3122, allocations: 28.94 kB / 400.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.3125, allocations: 166.3 kB / 400.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3125, allocations: 25.39 kB / 400.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/0.3126, allocations: 24.78 kB / 400.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004466/0.313, allocations: 245.7 kB / 401 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.313, allocations: 0 / 401 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.313, allocations: 11.3 kB / 401 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.313, allocations: 5.219 kB / 401 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.3133, allocations: 161.7 kB / 401.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009038/0.3142, allocations: 0.6653 MB / 401.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.3145, allocations: 156.1 kB / 402 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.3146, allocations: 71.22 kB / 402.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.3146, allocations: 5.094 kB / 402.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.3148, allocations: 122.4 kB / 402.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.525e-06/0.3148, allocations: 7.984 kB / 402.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004598/0.3153, allocations: 218.4 kB / 402.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.3153, allocations: 61.11 kB / 402.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.3155, allocations: 148.3 kB / 402.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3155, allocations: 34.45 kB / 402.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.3156, allocations: 134.4 kB / 402.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.995e-05/0.3156, allocations: 61.92 kB / 402.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3157, allocations: 76.39 kB / 402.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.261e-05/0.3158, allocations: 327.9 kB / 403.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.3159, allocations: 67.11 kB / 403.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.3161, allocations: 120.5 kB / 403.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.3163, allocations: 174.2 kB / 403.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3163, allocations: 5.062 kB / 403.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003994/0.3167, allocations: 247.2 kB / 403.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3167, allocations: 7.5 kB / 403.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3167, allocations: 1.562 kB / 403.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.3168, allocations: 5.109 kB / 403.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3169, allocations: 30.62 kB / 403.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.3169, allocations: 4.672 kB / 403.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.317, allocations: 28.12 kB / 403.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.317, allocations: 12.31 kB / 403.9 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.000122/0.3172, allocations: 161.5 kB / 404.1 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3172, allocations: 13.56 kB / 404.1 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003274/0.3175, allocations: 196.9 kB / 404.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3175, allocations: 3.312 kB / 404.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3175, allocations: 0 / 404.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3175, allocations: 1 kB / 404.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006596/0.3182, allocations: 0.5334 MB / 404.8 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3182, allocations: 3.938 kB / 404.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.781e-05/0.3183, allocations: 28.11 kB / 404.8 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.3183, allocations: 1.094 kB / 404.8 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.3183, allocations: 6.016 kB / 404.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.3183, allocations: 5.734 kB / 404.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3183, allocations: 1.219 kB / 404.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002935/0.3186, allocations: 275.3 kB / 405.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.3186, allocations: 17.25 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.3186, allocations: 6.75 kB / 405.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.3187, allocations: 18.19 kB / 405.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.3188, allocations: 26.62 kB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3188, allocations: 6.969 kB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.779e-05/0.3189, allocations: 92.28 kB / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3189, allocations: 0 / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.3192, allocations: 50.23 kB / 405.3 MB, free: 3.508 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.0005104/0.3197, allocations: 0.8206 MB / 406.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.32, allocations: 173.1 kB / 406.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.32, allocations: 5.156 kB / 406.3 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.3201, allocations: 73.22 kB / 406.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.3204, allocations: 23.8 kB / 406.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.3223, allocations: 2.019 MB / 408.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3225, allocations: 0.7331 MB / 409.2 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.022e-05/0.3226, allocations: 21.91 kB / 409.2 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3227, allocations: 58.09 kB / 409.3 MB, free: 340 kB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3227, allocations: 0 / 409.3 MB, free: 340 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02419/0.3469, allocations: 3.972 MB / 413.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.67, allocations: 6.953 kB / 413.2 MB, free: 14.85 MB / 334.1 MB " [Timeout remaining time 648] (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] [Calling os._exit(0), Time elapsed: 14.150270569021814] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.830382774001919 11.849381361 11.534273141 Calling exit ...