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.001854/0.001854, allocations: 110.5 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.002171/0.002171, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.533/1.533, allocations: 230.5 MB / 258.2 MB, free: 8.016 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.2439/0.2439, allocations: 46.94 MB / 361.6 MB, free: 4.191 MB / 286.1 MB " [Timeout remaining time 180] 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.002428/0.002428, allocations: 88.19 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3524, allocations: 66.09 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008404/0.3608, allocations: 5.816 MB / 0.5672 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004783/0.3656, allocations: 2.387 MB / 0.5695 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.3669, allocations: 51.56 kB / 0.5696 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007343/0.3677, allocations: 230 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007438/0.3684, allocations: 190.2 kB / 0.57 GB, free: 11.6 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.3698, allocations: 494.6 kB / 0.5704 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.3714, allocations: 1.114 MB / 0.5715 GB, free: 9.996 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007401/0.3721, allocations: 430 kB / 0.5719 GB, free: 9.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006702/0.3728, allocations: 382.6 kB / 0.5723 GB, free: 9.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005442/0.3733, allocations: 394 kB / 0.5727 GB, free: 8.793 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.3734, allocations: 96 kB / 0.5728 GB, free: 8.699 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.3737, allocations: 159.9 kB / 0.5729 GB, free: 8.543 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.374, allocations: 219.3 kB / 0.5731 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004545/0.3744, allocations: 473.6 kB / 0.5736 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.3759, allocations: 1.282 MB / 0.5748 GB, free: 6.578 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3759, allocations: 0 / 0.5748 GB, free: 6.578 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3759, allocations: 0 / 0.5748 GB, free: 6.578 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3759, allocations: 0 / 0.5748 GB, free: 6.578 MB / 414.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.001694/0.3776, allocations: 1.085 MB / 0.5759 GB, free: 5.461 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.3777, allocations: 16.03 kB / 0.5759 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001613/0.3778, allocations: 139.9 kB / 0.576 GB, free: 5.301 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.3781, allocations: 120.2 kB / 0.5762 GB, free: 5.184 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000963/0.3791, allocations: 0.5184 MB / 0.5767 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.3791, allocations: 66 kB / 0.5767 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.3793, allocations: 99.94 kB / 0.5768 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.3808, allocations: 0.8853 MB / 0.5777 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.3809, allocations: 11.98 kB / 0.5777 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.3809, allocations: 39.94 kB / 0.5777 GB, free: 3.477 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.381, allocations: 27.94 kB / 0.5778 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.382, allocations: 0.5152 MB / 0.5783 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003993/0.386, allocations: 3.516 MB / 0.5817 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.3866, allocations: 208.8 kB / 0.5819 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.3868, allocations: 96.81 kB / 0.582 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001191/0.3869, allocations: 19.97 kB / 0.582 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.3869, allocations: 42.56 kB / 0.582 GB, free: 14.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.3869, allocations: 0 / 0.582 GB, free: 14.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002448/0.3894, allocations: 1.162 MB / 0.5832 GB, free: 13.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.3894, allocations: 59.34 kB / 0.5832 GB, free: 13.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000461/0.3899, allocations: 401.9 kB / 0.5836 GB, free: 13.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.3899, allocations: 29.7 kB / 0.5837 GB, free: 13.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.3902, allocations: 487.4 kB / 0.5841 GB, free: 12.67 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3903, allocations: 134.9 kB / 0.5842 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3905, allocations: 94.3 kB / 0.5843 GB, free: 12.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3907, allocations: 362.8 kB / 0.5847 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.3909, allocations: 117.2 kB / 0.5848 GB, free: 11.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003794/0.3913, allocations: 311 kB / 0.5851 GB, free: 11.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006299/0.3919, allocations: 459.6 kB / 0.5855 GB, free: 11.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3919, allocations: 4 kB / 0.5855 GB, free: 11.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008835/0.3928, allocations: 0.509 MB / 0.586 GB, free: 10.51 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3928, allocations: 8 kB / 0.586 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3928, allocations: 8 kB / 0.586 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.393, allocations: 40.83 kB / 0.5861 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.3934, allocations: 128.3 kB / 0.5862 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004373/0.3939, allocations: 0.5641 MB / 0.5868 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.3941, allocations: 19.98 kB / 0.5868 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.505e-05/0.3941, allocations: 28 kB / 0.5868 GB, free: 9.688 MB / 430.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.0003425/0.3945, allocations: 226.5 kB / 0.587 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.074e-05/0.3945, allocations: 55.61 kB / 0.5871 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006591/0.3952, allocations: 323.1 kB / 0.5874 GB, free: 9.078 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.3952, allocations: 8.031 kB / 0.5874 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3952, allocations: 0 / 0.5874 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3952, allocations: 7.984 kB / 0.5874 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.3969, allocations: 1.027 MB / 0.5884 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.397, allocations: 4 kB / 0.5884 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003826/0.3973, allocations: 79.84 kB / 0.5885 GB, free: 7.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.3975, allocations: 36.78 kB / 0.5885 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.3975, allocations: 15.98 kB / 0.5885 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004608/0.398, allocations: 0.5486 MB / 0.5891 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.398, allocations: 0 / 0.5891 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.3989, allocations: 0.5563 MB / 0.5896 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.399, allocations: 43.66 kB / 0.5896 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.112e-05/0.3991, allocations: 8 kB / 0.5897 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.3993, allocations: 8 kB / 0.5897 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.3993, allocations: 31.89 kB / 0.5897 GB, free: 6.574 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.3993, allocations: 12.19 kB / 0.5897 GB, free: 6.562 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003403/0.3997, allocations: 275.1 kB / 0.59 GB, free: 6.297 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3997, allocations: 3.938 kB / 0.59 GB, free: 6.293 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006486/0.4003, allocations: 124 kB / 0.5901 GB, free: 6.172 MB / 430.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.001312/0.4017, allocations: 1.113 MB / 0.5912 GB, free: 5.012 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007242/0.4024, allocations: 320.2 kB / 0.5915 GB, free: 4.699 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4024, allocations: 0 / 0.5915 GB, free: 4.699 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.4027, allocations: 137.2 kB / 0.5916 GB, free: 4.566 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.4032, allocations: 77.23 kB / 0.5917 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007514/0.4107, allocations: 4.854 MB / 0.5964 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007833/0.4115, allocations: 0.9602 MB / 0.5974 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00023/0.4117, allocations: 64.48 kB / 0.5974 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003613/0.4121, allocations: 291.3 kB / 0.5977 GB, free: 14.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4121, allocations: 0 / 0.5977 GB, free: 14.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.4533, allocations: 9.833 MB / 0.6073 GB, free: 4.297 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.22, allocations: 17.41 kB / 0.6073 GB, free: 4.289 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: 16.30438834009692] 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.323426507879049 13.342979657 12.962774232 Calling exit ...