Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001304/0.001304, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.00143/0.00143, allocations: 212.5 kB / 24.51 MB, free: 3.938 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.37/1.37, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 55.91 kB / 378.5 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2253, allocations: 53.36 MB / 431.9 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002592/0.2279, allocations: 1.565 MB / 433.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003439/0.2282, allocations: 131.5 kB / 433.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.74e-05/0.2283, allocations: 0 / 433.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.237e-05/0.2283, allocations: 7.938 kB / 433.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.2285, allocations: 7.938 kB / 433.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.2287, allocations: 43.83 kB / 433.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.739e-05/0.2288, allocations: 23.98 kB / 433.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.505e-05/0.2288, allocations: 22.02 kB / 433.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.945e-05/0.2289, allocations: 11.94 kB / 433.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.233e-05/0.2289, allocations: 19.86 kB / 433.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.2289, allocations: 8 kB / 433.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.202e-05/0.2289, allocations: 4 kB / 433.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.288e-05/0.229, allocations: 11.94 kB / 433.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.684e-05/0.229, allocations: 19.86 kB / 433.7 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.2291, allocations: 47.75 kB / 433.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2291, allocations: 0 / 433.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2291, allocations: 0 / 433.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.2291, allocations: 0 / 433.8 MB, free: 4.75 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.0003955/0.2295, allocations: 294.1 kB / 434.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2296, allocations: 12.03 kB / 434.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.392e-05/0.2296, allocations: 192 / 434.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.122e-05/0.2296, allocations: 46.69 kB / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.2296, allocations: 8.891 kB / 434.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.2298, allocations: 137.3 kB / 434.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2298, allocations: 4.375 kB / 434.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.2298, allocations: 4.375 kB / 434.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.2301, allocations: 117.3 kB / 434.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.2301, allocations: 8 kB / 434.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.2301, allocations: 3.938 kB / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2301, allocations: 0 / 434.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.326e-05/0.2302, allocations: 23.92 kB / 434.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002733/0.2305, allocations: 232.8 kB / 434.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.2306, allocations: 57.14 kB / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.076e-05/0.2307, allocations: 25.77 kB / 434.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.2307, allocations: 4 kB / 434.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.2307, allocations: 38.56 kB / 434.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2307, allocations: 0 / 434.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002234/0.231, allocations: 77.56 kB / 434.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.231, allocations: 81.11 kB / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.2311, allocations: 130.1 kB / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.2311, allocations: 25.7 kB / 435.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.2312, allocations: 92.12 kB / 435.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.2312, allocations: 3.953 kB / 435.2 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.2312, allocations: 17.72 kB / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2314, allocations: 319 kB / 435.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.967e-05/0.2314, allocations: 11.94 kB / 435.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.974e-05/0.2314, allocations: 35.61 kB / 435.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.332e-05/0.2315, allocations: 47.3 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2315, allocations: 0 / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001237/0.2317, allocations: 65.62 kB / 435.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.2317, allocations: 4 kB / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2317, allocations: 96 / 435.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.2317, allocations: 7.984 kB / 435.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.851e-05/0.2317, allocations: 7.984 kB / 435.7 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2317, allocations: 4 kB / 435.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.221e-05/0.2318, allocations: 7.953 kB / 435.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.2318, allocations: 4 kB / 435.7 MB, free: 2.578 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 8.669e-05/0.2319, allocations: 133.8 kB / 435.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.838e-05/0.2319, allocations: 41.7 kB / 435.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.232, allocations: 12.33 kB / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.232, allocations: 0 / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.232, allocations: 0 / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.232, allocations: 0 / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.2321, allocations: 144.6 kB / 436 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2321, allocations: 3.938 kB / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.837e-05/0.2322, allocations: 11.98 kB / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.2322, allocations: 0 / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.2322, allocations: 0 / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.2322, allocations: 12 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2322, allocations: 3.938 kB / 436.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.2324, allocations: 172.3 kB / 436.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.2324, allocations: 11.92 kB / 436.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.2324, allocations: 0 / 436.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.688e-05/0.2325, allocations: 4 kB / 436.2 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.496e-05/0.2325, allocations: 4 kB / 436.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-06/0.2325, allocations: 0 / 436.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.713e-05/0.2326, allocations: 103.2 kB / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2326, allocations: 0 / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.2328, allocations: 12 kB / 436.4 MB, free: 1.836 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.0004462/0.2332, allocations: 0.6976 MB / 437.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.2334, allocations: 31.92 kB / 437.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2334, allocations: 0 / 437.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.416e-05/0.2334, allocations: 11.98 kB / 437.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.2337, allocations: 19.16 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.2349, allocations: 1.322 MB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.318e-05/0.235, allocations: 79.33 kB / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.079e-05/0.235, allocations: 0 / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/0.235, allocations: 15.86 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.235, allocations: 3.938 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.2557, allocations: 1.688 MB / 440.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.63, allocations: 0 / 440.2 MB, free: 13.97 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.904034383012913] Failed to read output from testmodel.py, exit status != 0: ['time', 'assignClock.y', 'sample1.y'] 10.785140736028552 10.799484365 10.567538728 Calling exit ...