Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.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.001545/0.001545, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001443/0.001443, allocations: 213.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 258.3 MB, free: 8.027 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-beta.om/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.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 68.55 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2741, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004032/0.2781, allocations: 2.393 MB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2794, allocations: 0.6582 MB / 435 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.2796, allocations: 11.88 kB / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.2797, allocations: 39.66 kB / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.2799, allocations: 79.27 kB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.2802, allocations: 63.86 kB / 435.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.2805, allocations: 266.8 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2807, allocations: 75.25 kB / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.2809, allocations: 115.5 kB / 435.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.2811, allocations: 119.5 kB / 435.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/0.2811, allocations: 24 kB / 435.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.996e-05/0.2812, allocations: 31.98 kB / 435.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.634e-05/0.2813, allocations: 43.84 kB / 435.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.2814, allocations: 127.3 kB / 435.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.2818, allocations: 271.7 kB / 436.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.826e-05/0.2818, allocations: 0 / 436.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2818, allocations: 0 / 436.2 MB, free: 2.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2818, allocations: 0 / 436.2 MB, free: 2.594 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007562/0.2826, allocations: 465.5 kB / 436.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2826, allocations: 11.97 kB / 436.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.868e-05/0.2827, allocations: 62.66 kB / 436.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.2829, allocations: 36.75 kB / 436.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2833, allocations: 182.9 kB / 436.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.2833, allocations: 16.81 kB / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.031e-05/0.2833, allocations: 28.33 kB / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.2837, allocations: 199.4 kB / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2837, allocations: 0 / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.2838, allocations: 4 kB / 437.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2838, allocations: 8 kB / 437.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.2841, allocations: 141.6 kB / 437.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.2851, allocations: 0.5988 MB / 437.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.2854, allocations: 166.5 kB / 438.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.2856, allocations: 92.81 kB / 438.2 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.2856, allocations: 4.031 kB / 438.2 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.2856, allocations: 38.55 kB / 438.2 MB, free: 444 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.2856, allocations: 0 / 438.2 MB, free: 444 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001973/0.2876, allocations: 0.9199 MB / 439.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.2877, allocations: 59.34 kB / 439.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.2879, allocations: 187.8 kB / 439.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.2879, allocations: 29.7 kB / 439.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.288, allocations: 144.8 kB / 439.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.801e-05/0.2881, allocations: 119 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.559e-05/0.2882, allocations: 53.7 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.2884, allocations: 330.8 kB / 440.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2885, allocations: 71.97 kB / 440.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.2887, allocations: 111.2 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.289, allocations: 193 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-06/0.289, allocations: 0 / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006708/0.2897, allocations: 291.3 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2897, allocations: 4 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.2897, allocations: 4 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.2899, allocations: 48.77 kB / 440.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.2902, allocations: 51.97 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.2918, allocations: 1.637 MB / 442.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.2919, allocations: 8 kB / 442.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.292, allocations: 15.98 kB / 442.5 MB, free: 11.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.2921, allocations: 137.8 kB / 442.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.2922, allocations: 27.98 kB / 442.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.592e-05/0.2922, allocations: 26.66 kB / 442.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2922, allocations: 4 kB / 442.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2922, allocations: 4 kB / 442.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2922, allocations: 3.984 kB / 442.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.2934, allocations: 0.7578 MB / 443.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2934, allocations: 4 kB / 443.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.2937, allocations: 55.97 kB / 443.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.2938, allocations: 40.86 kB / 443.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.2938, allocations: 8 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.2951, allocations: 1.393 MB / 444.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2951, allocations: 4.031 kB / 444.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000729/0.2958, allocations: 482.9 kB / 445.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-05/0.2958, allocations: 27.89 kB / 445.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.2959, allocations: 8 kB / 445.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.296, allocations: 7.938 kB / 445.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.2961, allocations: 27.95 kB / 445.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2961, allocations: 4 kB / 445.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.2962, allocations: 136.4 kB / 445.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2962, allocations: 4 kB / 445.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.2966, allocations: 64 kB / 445.7 MB, free: 8.516 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.2976, allocations: 1.02 MB / 446.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006801/0.2983, allocations: 330.6 kB / 447 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2983, allocations: 4 kB / 447 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000365/0.2987, allocations: 230.9 kB / 447.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.2991, allocations: 54.52 kB / 447.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.3029, allocations: 2.755 MB / 450.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.3034, allocations: 0.7564 MB / 450.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.367e-05/0.3035, allocations: 26.27 kB / 450.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.3036, allocations: 79.41 kB / 450.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3036, allocations: 3.938 kB / 450.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.3428, allocations: 5.496 MB / 456.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.67, allocations: 7.438 kB / 456.4 MB, free: 13.7 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.966004121117294] Failed to read output from testmodel.py, exit status != 0: ['time', 'damper.phi_rel', 'damper.w_rel', 'inertia3.phi', 'inertia3.w'] 10.758922697044909 10.77993715 10.494199283 Calling exit ...