Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 230.5 MB / 258.2 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 59.91 kB / 378.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.223, allocations: 53.41 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003751/0.2267, allocations: 2.378 MB / 434.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.2283, allocations: 0.7751 MB / 435.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.2285, allocations: 4 kB / 435.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.2286, allocations: 39.58 kB / 435.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.2289, allocations: 95.27 kB / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.2293, allocations: 115.7 kB / 435.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.2296, allocations: 302.6 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.2298, allocations: 48.89 kB / 435.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.2299, allocations: 115.6 kB / 435.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.2301, allocations: 127.4 kB / 435.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.2301, allocations: 24 kB / 436 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.824e-05/0.2302, allocations: 20 kB / 436 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.637e-05/0.2302, allocations: 63.75 kB / 436.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.2304, allocations: 119.4 kB / 436.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.2307, allocations: 279.5 kB / 436.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2307, allocations: 4 kB / 436.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2307, allocations: 0 / 436.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.2307, allocations: 0 / 436.4 MB, free: 2.184 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008804/0.2316, allocations: 485.5 kB / 436.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2316, allocations: 12.03 kB / 436.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.679e-05/0.2316, allocations: 4.625 kB / 436.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.2317, allocations: 58.67 kB / 437 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.224e-05/0.2317, allocations: 32.75 kB / 437 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.232, allocations: 196 kB / 437.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.2321, allocations: 24.81 kB / 437.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.2321, allocations: 28.34 kB / 437.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.2325, allocations: 238.6 kB / 437.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.2325, allocations: 3.953 kB / 437.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.2326, allocations: 15.94 kB / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2326, allocations: 8 kB / 437.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.2329, allocations: 163.9 kB / 437.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.2343, allocations: 0.9687 MB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005623/0.2348, allocations: 290.4 kB / 438.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.235, allocations: 91.41 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.235, allocations: 4 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.2351, allocations: 34.56 kB / 439.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.2351, allocations: 0 / 439.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001817/0.2369, allocations: 1.044 MB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/0.237, allocations: 132.5 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.2372, allocations: 218.6 kB / 440.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.2372, allocations: 33.7 kB / 440.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.2373, allocations: 156.7 kB / 440.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.2374, allocations: 127 kB / 440.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.2375, allocations: 70.12 kB / 440.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2377, allocations: 338.8 kB / 441.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2379, allocations: 76.84 kB / 441.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.2382, allocations: 201.9 kB / 441.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000476/0.2386, allocations: 298 kB / 441.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2386, allocations: 4 kB / 441.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006271/0.2393, allocations: 345 kB / 442.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2393, allocations: 8.25 kB / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2393, allocations: 8 kB / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.2393, allocations: 4 kB / 442.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.2397, allocations: 91.89 kB / 442.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.2397, allocations: 15.88 kB / 442.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.2398, allocations: 8 kB / 442.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.2399, allocations: 23.98 kB / 442.2 MB, free: 11.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (48): * Single equations (assignments): 48 * 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.0001444/0.24, allocations: 141.8 kB / 442.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.741e-05/0.2401, allocations: 23.86 kB / 442.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.909e-05/0.2402, allocations: 41.33 kB / 442.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2402, allocations: 4 kB / 442.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2402, allocations: 7.938 kB / 442.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2402, allocations: 0 / 442.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.2416, allocations: 0.9467 MB / 443.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2416, allocations: 0 / 443.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.242, allocations: 75.91 kB / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.242, allocations: 4 kB / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.242, allocations: 16.23 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.242, allocations: 8 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.242, allocations: 4 kB / 443.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008487/0.2429, allocations: 0.6962 MB / 444.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.2429, allocations: 19.86 kB / 444.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.243, allocations: 15.94 kB / 444.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.2432, allocations: 15.98 kB / 444.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.442e-05/0.2433, allocations: 35.83 kB / 444.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.2433, allocations: 12 kB / 444.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000138/0.2434, allocations: 140.6 kB / 444.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2435, allocations: 0 / 444.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000471/0.2439, allocations: 68 kB / 444.5 MB, free: 9.496 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (32): * Single equations (assignments): 32 * 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.001156/0.2451, allocations: 1.245 MB / 445.7 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004926/0.2456, allocations: 232.7 kB / 446 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2456, allocations: 3.938 kB / 446 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.2458, allocations: 124.3 kB / 446.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007341/0.2465, allocations: 86.3 kB / 446.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004557/0.2511, allocations: 3.487 MB / 449.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.2515, allocations: 0.7643 MB / 450.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001439/0.2517, allocations: 30.97 kB / 450.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.2518, allocations: 95.31 kB / 450.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2518, allocations: 0 / 450.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.2813, allocations: 6.136 MB / 456.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.24, allocations: 3.859 kB / 456.7 MB, free: 13.14 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.66296094597783] Failed to read output from testmodel.py, exit status != 0: ['time', 'mass1.v', 'mass2.v', 'mass3.v', 'mass4.v'] 11.399661583011039 11.414872641 11.181124655 Calling exit ...