Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.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.001637/0.001637, allocations: 109.3 kB / 19.8 MB, free: 2.5 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.002263/0.002263, allocations: 220.2 kB / 23 MB, free: 5.578 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.49/1.49, allocations: 230.2 MB / 256.2 MB, free: 8.523 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2355/0.2355, allocations: 46.88 MB / 359.4 MB, free: 4.883 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002451/0.002451, allocations: 75.88 kB / 0.4941 GB, free: 9.555 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3409, allocations: 65.97 MB / 0.5585 GB, free: 33.83 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005404/0.3463, allocations: 5.829 MB / 0.5642 GB, free: 29.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003321/0.3497, allocations: 2.389 MB / 0.5666 GB, free: 28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007681/0.3504, allocations: 41.28 kB / 0.5666 GB, free: 27.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004977/0.3509, allocations: 232.9 kB / 0.5668 GB, free: 27.83 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004394/0.3514, allocations: 183 kB / 0.567 GB, free: 27.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3524, allocations: 495.9 kB / 0.5675 GB, free: 27.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009848/0.3534, allocations: 1.117 MB / 0.5686 GB, free: 26.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.354, allocations: 424.7 kB / 0.569 GB, free: 26.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004419/0.3544, allocations: 377.4 kB / 0.5693 GB, free: 26.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.3548, allocations: 392.4 kB / 0.5697 GB, free: 26.14 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.921e-05/0.3549, allocations: 95.69 kB / 0.5698 GB, free: 26.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/0.3551, allocations: 158.4 kB / 0.5699 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/0.3553, allocations: 211.5 kB / 0.5701 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003024/0.3556, allocations: 479.9 kB / 0.5706 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.3569, allocations: 1.278 MB / 0.5718 GB, free: 25.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3569, allocations: 1.125 kB / 0.5718 GB, free: 25.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3569, allocations: 3.812 kB / 0.5719 GB, free: 25.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.357, allocations: 0 / 0.5719 GB, free: 25.12 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001655/0.3586, allocations: 1.161 MB / 0.573 GB, free: 24.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3587, allocations: 9.625 kB / 0.573 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.3588, allocations: 148 kB / 0.5731 GB, free: 24.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.3591, allocations: 120.4 kB / 0.5733 GB, free: 24.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000836/0.3599, allocations: 0.5984 MB / 0.5738 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.36, allocations: 67.88 kB / 0.5739 GB, free: 23.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.3601, allocations: 96.19 kB / 0.574 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.3614, allocations: 0.8872 MB / 0.5749 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.651e-05/0.3614, allocations: 7.375 kB / 0.5749 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.3615, allocations: 38.55 kB / 0.5749 GB, free: 23.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.3615, allocations: 22.34 kB / 0.5749 GB, free: 23.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009542/0.3625, allocations: 0.5206 MB / 0.5754 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003109/0.3656, allocations: 3.612 MB / 0.579 GB, free: 20.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005346/0.3661, allocations: 210.2 kB / 0.5792 GB, free: 20.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3663, allocations: 94.78 kB / 0.5793 GB, free: 20.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001638/0.3664, allocations: 249 kB / 0.5795 GB, free: 19.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.3665, allocations: 41.39 kB / 0.5795 GB, free: 19.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.3665, allocations: 0 / 0.5795 GB, free: 19.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=35): time 0.002206/0.3687, allocations: 1.309 MB / 0.5808 GB, free: 18.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.3687, allocations: 60.72 kB / 0.5809 GB, free: 18.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.3691, allocations: 406.6 kB / 0.5813 GB, free: 18.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3691, allocations: 31.05 kB / 0.5813 GB, free: 18.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.3693, allocations: 480 kB / 0.5817 GB, free: 18.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.098e-05/0.3694, allocations: 143.9 kB / 0.5819 GB, free: 18.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3695, allocations: 96.77 kB / 0.582 GB, free: 18.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.3696, allocations: 366 kB / 0.5823 GB, free: 17.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.3698, allocations: 115.6 kB / 0.5824 GB, free: 17.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.37, allocations: 306 kB / 0.5827 GB, free: 17.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.3705, allocations: 461.3 kB / 0.5832 GB, free: 16.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3705, allocations: 2.188 kB / 0.5832 GB, free: 16.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007427/0.3713, allocations: 0.5176 MB / 0.5837 GB, free: 16.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3713, allocations: 12.06 kB / 0.5837 GB, free: 16.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3713, allocations: 6.406 kB / 0.5837 GB, free: 16.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001952/0.3715, allocations: 37.41 kB / 0.5837 GB, free: 16.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.3719, allocations: 134.8 kB / 0.5838 GB, free: 16.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002684/0.3721, allocations: 0.5529 MB / 0.5844 GB, free: 16.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.3723, allocations: 17.81 kB / 0.5844 GB, free: 16.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.3724, allocations: 30.12 kB / 0.5844 GB, free: 16.14 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.3727, allocations: 230 kB / 0.5847 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-05/0.3727, allocations: 58.81 kB / 0.5847 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000611/0.3733, allocations: 321.1 kB / 0.585 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3734, allocations: 4.25 kB / 0.585 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3734, allocations: 0 / 0.585 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3734, allocations: 5.344 kB / 0.585 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.3749, allocations: 1.058 MB / 0.5861 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3749, allocations: 1.156 kB / 0.5861 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.3752, allocations: 81.78 kB / 0.5861 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/0.3754, allocations: 34.22 kB / 0.5862 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.3754, allocations: 14.06 kB / 0.5862 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002278/0.3756, allocations: 0.5449 MB / 0.5867 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3756, allocations: 1.219 kB / 0.5867 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007907/0.3764, allocations: 0.56 MB / 0.5873 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/0.3765, allocations: 122.2 kB / 0.5874 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.3765, allocations: 9.047 kB / 0.5874 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.3767, allocations: 12.09 kB / 0.5874 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/0.3768, allocations: 36.33 kB / 0.5874 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.3768, allocations: 10.14 kB / 0.5874 GB, free: 14.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000297/0.3771, allocations: 271.4 kB / 0.5877 GB, free: 13.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3771, allocations: 0 / 0.5877 GB, free: 13.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.3777, allocations: 131.2 kB / 0.5878 GB, free: 13.89 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009716/0.3787, allocations: 1.117 MB / 0.5889 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006616/0.3794, allocations: 313.8 kB / 0.5892 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3794, allocations: 5.625 kB / 0.5892 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.3796, allocations: 131.7 kB / 0.5893 GB, free: 12.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005542/0.3802, allocations: 78.44 kB / 0.5894 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006736/0.3869, allocations: 4.847 MB / 0.5942 GB, free: 9.527 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.3875, allocations: 0.9661 MB / 0.5951 GB, free: 8.801 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.3877, allocations: 63.67 kB / 0.5952 GB, free: 8.785 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.388, allocations: 297 kB / 0.5954 GB, free: 8.551 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.388, allocations: 0 / 0.5954 GB, free: 8.551 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03929/0.4273, allocations: 9.481 MB / 0.6047 GB, free: 5.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.04, allocations: 13 kB / 0.6047 GB, free: 5.555 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.907480459020007] Failed to read output from testmodel.py, exit status != 0: ['time', 'directInertia.inertia.phi', 'directInertia.inertia.w', 'inertia2a.phi', 'inertia2a.w', 'inertia2b.phi', 'inertia2b.w', 'inertia3a.phi', 'inertia3a.w', 'inertia3b.phi', 'inertia3b.w'] 13.147443851979915 13.170883948 12.808933306 Calling exit ...