Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 189.2 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 43.94 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2425, allocations: 52.18 MB / 423.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003092/0.2456, allocations: 1.56 MB / 424.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004619/0.2461, allocations: 135.6 kB / 425.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.2462, allocations: 4 kB / 425.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.987e-05/0.2462, allocations: 3.938 kB / 425.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.2464, allocations: 3.938 kB / 425.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2467, allocations: 43.83 kB / 425.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.2468, allocations: 27.92 kB / 425.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.2469, allocations: 10.11 kB / 425.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.045e-05/0.2469, allocations: 15.92 kB / 425.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.247, allocations: 23.84 kB / 425.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.247, allocations: 8 kB / 425.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.247, allocations: 4 kB / 425.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.396e-05/0.2471, allocations: 8 kB / 425.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.2471, allocations: 19.81 kB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.2472, allocations: 51.73 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2472, allocations: 3.938 kB / 425.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2472, allocations: 0 / 425.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2472, allocations: 0 / 425.3 MB, free: 12.44 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004805/0.2477, allocations: 298 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2478, allocations: 12.03 kB / 425.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.099e-05/0.2478, allocations: 192 / 425.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.994e-05/0.2478, allocations: 42.69 kB / 425.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.2479, allocations: 8.891 kB / 425.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.2481, allocations: 126.5 kB / 425.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.2481, allocations: 8.359 kB / 425.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.2481, allocations: 384 / 425.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.2485, allocations: 117.3 kB / 425.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2485, allocations: 4 kB / 425.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2485, allocations: 0 / 425.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2485, allocations: 3.938 kB / 425.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.037e-05/0.2486, allocations: 23.92 kB / 425.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.249, allocations: 236.7 kB / 426.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.2492, allocations: 57.14 kB / 426.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.151e-05/0.2493, allocations: 33.75 kB / 426.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.2493, allocations: 0 / 426.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.2493, allocations: 38.56 kB / 426.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2493, allocations: 0 / 426.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002676/0.2496, allocations: 77.56 kB / 426.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.2496, allocations: 85.05 kB / 426.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.2498, allocations: 133.6 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.2498, allocations: 25.7 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.2498, allocations: 92.12 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.2499, allocations: 0 / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.2499, allocations: 21.67 kB / 426.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.25, allocations: 315 kB / 427 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.841e-05/0.2501, allocations: 11.98 kB / 427 MB, free: 10.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.356e-05/0.2501, allocations: 35.42 kB / 427 MB, free: 10.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.2502, allocations: 47.3 kB / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2502, allocations: 0 / 427.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001355/0.2504, allocations: 65.62 kB / 427.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2504, allocations: 4 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2504, allocations: 3.938 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.2504, allocations: 4 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.317e-05/0.2505, allocations: 15.98 kB / 427.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2505, allocations: 3.938 kB / 427.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.2505, allocations: 8 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.2505, allocations: 0 / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.000101/0.2506, allocations: 125.9 kB / 427.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.733e-05/0.2507, allocations: 45.66 kB / 427.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.2507, allocations: 16.33 kB / 427.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2507, allocations: 0 / 427.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2507, allocations: 0 / 427.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2507, allocations: 4 kB / 427.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.2509, allocations: 132.7 kB / 427.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.2509, allocations: 0 / 427.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/0.251, allocations: 19.86 kB / 427.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.251, allocations: 0 / 427.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.251, allocations: 0 / 427.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.251, allocations: 8 kB / 427.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.251, allocations: 0 / 427.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.2512, allocations: 172.3 kB / 427.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.2512, allocations: 11.89 kB / 427.7 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.2512, allocations: 3.984 kB / 427.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.88e-05/0.2513, allocations: 8 kB / 427.7 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.2513, allocations: 0 / 427.7 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.2513, allocations: 4 kB / 427.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.208e-05/0.2514, allocations: 103.2 kB / 427.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2514, allocations: 0 / 427.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.2516, allocations: 12 kB / 427.8 MB, free: 9.531 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005909/0.2522, allocations: 0.694 MB / 428.5 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.2523, allocations: 31.92 kB / 428.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/0.2523, allocations: 4 kB / 428.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.258e-05/0.2524, allocations: 7.984 kB / 428.6 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.2527, allocations: 22.62 kB / 428.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.2543, allocations: 1.33 MB / 429.9 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.802e-05/0.2543, allocations: 79.12 kB / 430 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.586e-05/0.2544, allocations: 0 / 430 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.2544, allocations: 15.44 kB / 430 MB, free: 7.199 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2544, allocations: 0 / 430 MB, free: 7.199 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.276, allocations: 1.678 MB / 431.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.96, allocations: 7.438 kB / 431.7 MB, free: 5.664 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.201804609037936] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock.y', 'sample1.y'] 11.114203026983887 11.129831629 10.879460033 Calling exit ...