Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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.007246/0.007246, allocations: 117.2 kB / 21.97 MB, free: 5.246 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.001386/0.001386, allocations: 208.3 kB / 25.28 MB, free: 3.254 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.489/1.489, allocations: 207.6 MB / 236 MB, free: 10.89 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001738/0.001738, allocations: 47.94 kB / 348 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2999, allocations: 49.16 MB / 397.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002795/0.3027, allocations: 1.699 MB / 398.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006082/0.3033, allocations: 260.8 kB / 399.1 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.3034, allocations: 8.219 kB / 399.1 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.3035, allocations: 26.53 kB / 399.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.816e-05/0.3036, allocations: 18.33 kB / 399.1 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.304, allocations: 132.5 kB / 399.2 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.3043, allocations: 267.4 kB / 399.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003285/0.3047, allocations: 163.1 kB / 399.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3048, allocations: 87.72 kB / 399.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.3049, allocations: 100.5 kB / 399.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.305, allocations: 23.09 kB / 399.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.297e-05/0.3051, allocations: 29.09 kB / 399.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.137e-05/0.3051, allocations: 59.05 kB / 400 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3052, allocations: 105.3 kB / 400.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.3057, allocations: 248.7 kB / 400.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3057, allocations: 4.594 kB / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3057, allocations: 0 / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.3057, allocations: 0 / 400.3 MB, free: 7.066 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006677/0.3064, allocations: 419.2 kB / 400.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.3064, allocations: 13.45 kB / 400.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.88e-05/0.3064, allocations: 11.16 kB / 400.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.027e-05/0.3065, allocations: 61.81 kB / 400.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.746e-05/0.3066, allocations: 28.08 kB / 400.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.3069, allocations: 168.4 kB / 401 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.3069, allocations: 25.69 kB / 401 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.307, allocations: 26.22 kB / 401 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/0.3074, allocations: 280.9 kB / 401.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3075, allocations: 0 / 401.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.3075, allocations: 7.656 kB / 401.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.3075, allocations: 9.812 kB / 401.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.3078, allocations: 168.9 kB / 401.5 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.3089, allocations: 0.9305 MB / 402.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002936/0.3092, allocations: 140.5 kB / 402.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.3093, allocations: 63.58 kB / 402.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.3093, allocations: 1.406 kB / 402.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.3095, allocations: 127.6 kB / 402.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.323e-06/0.3095, allocations: 0 / 402.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004514/0.31, allocations: 214.9 kB / 403 MB, free: 5.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.31, allocations: 56.19 kB / 403 MB, free: 5.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.3101, allocations: 156.1 kB / 403.2 MB, free: 5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.3102, allocations: 38.98 kB / 403.2 MB, free: 4.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.3102, allocations: 140 kB / 403.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.3103, allocations: 65.89 kB / 403.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.3104, allocations: 82.8 kB / 403.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.3104, allocations: 326.6 kB / 403.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3105, allocations: 63.23 kB / 403.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.3107, allocations: 142.7 kB / 404 MB, free: 4.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.3109, allocations: 186.4 kB / 404.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3109, allocations: 0.7031 kB / 404.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003348/0.3112, allocations: 250 kB / 404.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3112, allocations: 7.062 kB / 404.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3113, allocations: 5.25 kB / 404.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.3113, allocations: 5.438 kB / 404.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.3114, allocations: 36.03 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3114, allocations: 3.594 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3115, allocations: 31.78 kB / 404.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.3116, allocations: 17.06 kB / 404.5 MB, free: 3.988 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001147/0.3117, allocations: 152.4 kB / 404.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.3117, allocations: 9.547 kB / 404.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003195/0.312, allocations: 210 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.312, allocations: 2.094 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.312, allocations: 1.094 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.312, allocations: 0 / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006763/0.3127, allocations: 0.5618 MB / 405.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3127, allocations: 2.266 kB / 405.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.314e-05/0.3128, allocations: 16.88 kB / 405.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.3128, allocations: 1.094 kB / 405.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.3128, allocations: 14.36 kB / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3128, allocations: 1.156 kB / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3128, allocations: 0.9688 kB / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.3131, allocations: 273.1 kB / 405.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.835e-05/0.3131, allocations: 22.31 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.3132, allocations: 6.219 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.3132, allocations: 4.5 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.3133, allocations: 21 kB / 405.8 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.3133, allocations: 15.02 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.3134, allocations: 98.62 kB / 405.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3134, allocations: 1.531 kB / 405.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000323/0.3137, allocations: 50.53 kB / 406 MB, free: 2.996 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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0004864/0.3142, allocations: 0.819 MB / 406.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002924/0.3145, allocations: 173.3 kB / 407 MB, free: 2.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3145, allocations: 1.094 kB / 407 MB, free: 2.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3146, allocations: 72.69 kB / 407.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.3149, allocations: 18.86 kB / 407.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.3167, allocations: 2.054 MB / 409.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.317, allocations: 0.7399 MB / 409.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.415e-05/0.3171, allocations: 21.81 kB / 409.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3172, allocations: 68.64 kB / 410 MB, free: 15.78 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3172, allocations: 0 / 410 MB, free: 15.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.3425, allocations: 3.985 MB / 413.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.7, allocations: 11.7 kB / 413.9 MB, free: 14.25 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.137510959000792] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 11.856220034998842 11.873454218 11.564697418 Calling exit ...