Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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: 105.1 kB / 21.21 MB, free: 0.6523 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.001334/0.001334, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.435/1.435, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 43.92 kB / 378.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2607, allocations: 53.37 MB / 431.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003463/0.2641, allocations: 1.687 MB / 433.6 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005346/0.2647, allocations: 159.4 kB / 433.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.2648, allocations: 3.938 kB / 433.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.721e-05/0.2649, allocations: 7.938 kB / 433.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.265, allocations: 19.88 kB / 433.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.2653, allocations: 39.89 kB / 433.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.2654, allocations: 55.78 kB / 433.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.2656, allocations: 22.09 kB / 433.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.583e-05/0.2656, allocations: 31.84 kB / 433.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.984e-05/0.2657, allocations: 27.86 kB / 433.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.2657, allocations: 4 kB / 433.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.379e-05/0.2657, allocations: 7.938 kB / 433.9 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.012e-05/0.2658, allocations: 15.92 kB / 433.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.977e-05/0.2658, allocations: 23.81 kB / 434 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.266, allocations: 75.66 kB / 434 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.266, allocations: 0 / 434 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.266, allocations: 0 / 434 MB, free: 4.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.361e-06/0.266, allocations: 0 / 434 MB, free: 4.445 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004936/0.2665, allocations: 317.9 kB / 434.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2665, allocations: 12.03 kB / 434.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.218e-05/0.2665, allocations: 192 / 434.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.926e-05/0.2666, allocations: 42.69 kB / 434.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2666, allocations: 12.88 kB / 434.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.2668, allocations: 142.4 kB / 434.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.2669, allocations: 8.312 kB / 434.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.2669, allocations: 8.375 kB / 434.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.2672, allocations: 168.5 kB / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2672, allocations: 0 / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.2672, allocations: 0 / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2672, allocations: 0 / 434.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.2673, allocations: 39.92 kB / 434.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/0.2678, allocations: 332.9 kB / 435.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002752/0.268, allocations: 107.8 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.2682, allocations: 58.61 kB / 435.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2682, allocations: 4 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.2682, allocations: 34.56 kB / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.2682, allocations: 0 / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003583/0.2686, allocations: 129.7 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.2687, allocations: 110.8 kB / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.2688, allocations: 136 kB / 435.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.2688, allocations: 29.7 kB / 435.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.418e-05/0.2689, allocations: 92.06 kB / 435.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.2689, allocations: 7.953 kB / 435.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.141e-05/0.269, allocations: 33.66 kB / 435.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2691, allocations: 318.8 kB / 436.1 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.374e-05/0.2692, allocations: 16.23 kB / 436.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.324e-05/0.2692, allocations: 75.66 kB / 436.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.2694, allocations: 91.59 kB / 436.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2694, allocations: 8 kB / 436.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001836/0.2696, allocations: 105.4 kB / 436.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2696, allocations: 8 kB / 436.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2696, allocations: 0 / 436.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2696, allocations: 4 kB / 436.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.906e-05/0.2697, allocations: 28.2 kB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2697, allocations: 4 kB / 436.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.695e-05/0.2697, allocations: 11.95 kB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.2697, allocations: 4 kB / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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 9.566e-05/0.2698, allocations: 125.7 kB / 436.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.27, allocations: 73.64 kB / 436.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.27, allocations: 16.7 kB / 436.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.27, allocations: 0 / 436.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.27, allocations: 4 kB / 436.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.27, allocations: 3.984 kB / 436.7 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.2702, allocations: 148.6 kB / 436.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2702, allocations: 8 kB / 436.9 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.877e-05/0.2703, allocations: 23.92 kB / 436.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2703, allocations: 4 kB / 436.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.2703, allocations: 0 / 436.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.2703, allocations: 0 / 436.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2703, allocations: 4 kB / 436.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.2707, allocations: 312.3 kB / 437.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.2707, allocations: 23.86 kB / 437.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.2708, allocations: 15.94 kB / 437.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.303e-05/0.2709, allocations: 3.984 kB / 437.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.25e-05/0.2709, allocations: 4 kB / 437.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.2709, allocations: 0 / 437.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.271, allocations: 114.4 kB / 437.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.271, allocations: 0 / 437.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.2713, allocations: 12 kB / 437.4 MB, free: 0.7305 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.0006659/0.2719, allocations: 0.8463 MB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.2721, allocations: 55.86 kB / 438.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2721, allocations: 0 / 438.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.835e-05/0.2722, allocations: 11.98 kB / 438.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.2726, allocations: 46.52 kB / 438.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.2743, allocations: 1.589 MB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.534e-05/0.2743, allocations: 91.2 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.293e-05/0.2744, allocations: 4.672 kB / 440 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.2744, allocations: 27.42 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2744, allocations: 0 / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.2965, allocations: 2.099 MB / 442.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.8, allocations: 4.062 kB / 442.1 MB, free: 11.93 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.138621715013869] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'sample2.y', 'hold1.y'] 10.9522507970687 10.967614395 10.698631773 Calling exit ...