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.001235/0.001235, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001355/0.001355, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 8.016 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 44.02 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2361, allocations: 53.37 MB / 431.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003007/0.2391, allocations: 1.7 MB / 433.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006612/0.2398, allocations: 291.2 kB / 433.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.995e-05/0.2399, allocations: 7.938 kB / 433.9 MB, free: 5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.24, allocations: 27.67 kB / 433.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/0.24, allocations: 19.8 kB / 433.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.2404, allocations: 123.8 kB / 434.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.2407, allocations: 283.4 kB / 434.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.241, allocations: 151.5 kB / 434.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.2412, allocations: 95.69 kB / 434.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.2413, allocations: 107.5 kB / 434.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.396e-05/0.2413, allocations: 24 kB / 434.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.669e-05/0.2414, allocations: 35.97 kB / 434.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-05/0.2415, allocations: 55.84 kB / 434.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.2416, allocations: 107.4 kB / 434.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.2419, allocations: 263.3 kB / 435.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2419, allocations: 0 / 435.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2419, allocations: 3.938 kB / 435.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2419, allocations: 0 / 435.2 MB, free: 3.727 MB / 334.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.0007056/0.2427, allocations: 417.2 kB / 435.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2427, allocations: 12.03 kB / 435.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.039e-05/0.2427, allocations: 8.688 kB / 435.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.2428, allocations: 62.72 kB / 435.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.243, allocations: 36.72 kB / 435.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.2433, allocations: 174.2 kB / 435.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.2434, allocations: 24.88 kB / 435.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.2434, allocations: 24.38 kB / 435.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.2439, allocations: 277.5 kB / 436.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2439, allocations: 4 kB / 436.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.2439, allocations: 4 kB / 436.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2439, allocations: 8 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.2442, allocations: 161.6 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.2453, allocations: 0.9249 MB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.2456, allocations: 169.2 kB / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.2457, allocations: 65.78 kB / 437.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2457, allocations: 4 kB / 437.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.246, allocations: 142.6 kB / 437.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.246, allocations: 0 / 437.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004301/0.2464, allocations: 225 kB / 437.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.2465, allocations: 89.09 kB / 438 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2466, allocations: 156.6 kB / 438.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.2466, allocations: 37.7 kB / 438.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.2467, allocations: 140.7 kB / 438.3 MB, free: 388 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.757e-05/0.2468, allocations: 67.56 kB / 438.4 MB, free: 320 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2469, allocations: 77.64 kB / 438.4 MB, free: 236 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2471, allocations: 330.9 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.2472, allocations: 67.75 kB / 438.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.2474, allocations: 140.4 kB / 439 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.2476, allocations: 200.8 kB / 439.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2476, allocations: 4 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003743/0.248, allocations: 245.3 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.248, allocations: 8 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.248, allocations: 3.984 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.248, allocations: 4 kB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.2482, allocations: 39.92 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2482, allocations: 8.219 kB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.168e-05/0.2483, allocations: 31.78 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.2483, allocations: 12 kB / 439.5 MB, free: 15.08 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.0001436/0.2484, allocations: 157.7 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.2485, allocations: 15.95 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.2485, allocations: 12.94 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2485, allocations: 4 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2485, allocations: 0 / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2485, allocations: 3.984 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007347/0.2493, allocations: 0.5508 MB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2493, allocations: 0 / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-05/0.2493, allocations: 19.94 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2493, allocations: 0 / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.2493, allocations: 7.938 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2493, allocations: 0 / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2494, allocations: 3.984 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003042/0.2497, allocations: 283 kB / 440.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.2497, allocations: 15.84 kB / 440.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.2497, allocations: 15.92 kB / 440.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-05/0.2498, allocations: 4 kB / 440.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.2499, allocations: 23.91 kB / 440.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.2499, allocations: 8 kB / 440.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.743e-05/0.2499, allocations: 99.25 kB / 440.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2499, allocations: 4 kB / 440.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.2502, allocations: 47.89 kB / 440.8 MB, free: 13.73 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.0006325/0.2509, allocations: 0.8145 MB / 441.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003079/0.2512, allocations: 171.9 kB / 441.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2512, allocations: 0 / 441.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.2513, allocations: 73.95 kB / 441.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2516, allocations: 30.5 kB / 441.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.2538, allocations: 2.064 MB / 443.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.2542, allocations: 0.7404 MB / 444.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.216e-05/0.2543, allocations: 17.95 kB / 444.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.2544, allocations: 59.41 kB / 444.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2544, allocations: 4 kB / 444.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.2771, allocations: 3.803 MB / 448.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.72, allocations: 22.44 kB / 448.6 MB, free: 5.891 MB / 350.1 MB " [Timeout remaining time 649] (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] [Calling os._exit(0), Time elapsed: 12.991425151005387] Failed to read output from testmodel.py, exit status != 0: ['time', 'transition1.enableFire', 'transition2.enableFire'] 10.871418780006934 10.886178600000001 10.641329629 Calling exit ...