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.001722/0.001722, 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.002035/0.002035, allocations: 211.9 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.499/1.499, 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.2329/0.2329, allocations: 46.94 MB / 361.6 MB, free: 4.199 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.002525/0.002525, allocations: 87.86 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3332, allocations: 66.08 MB / 0.5615 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007643/0.3408, allocations: 5.812 MB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004236/0.345, allocations: 2.391 MB / 0.5695 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006393/0.3457, allocations: 55.5 kB / 0.5696 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005117/0.3462, allocations: 230 kB / 0.5698 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003929/0.3466, allocations: 182.2 kB / 0.57 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3477, allocations: 0.4946 MB / 0.5704 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001281/0.3489, allocations: 1.106 MB / 0.5715 GB, free: 9.984 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006723/0.3496, allocations: 426 kB / 0.5719 GB, free: 9.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005258/0.3501, allocations: 390.5 kB / 0.5723 GB, free: 9.164 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004673/0.3506, allocations: 398 kB / 0.5727 GB, free: 8.773 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.3507, allocations: 96 kB / 0.5728 GB, free: 8.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.351, allocations: 155.9 kB / 0.5729 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.3512, allocations: 219.3 kB / 0.5731 GB, free: 8.312 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004615/0.3516, allocations: 469.6 kB / 0.5736 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.3531, allocations: 1.286 MB / 0.5748 GB, free: 6.562 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3531, allocations: 0 / 0.5748 GB, free: 6.562 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3531, allocations: 0 / 0.5748 GB, free: 6.562 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.3531, allocations: 0 / 0.5748 GB, free: 6.562 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.00156/0.3547, allocations: 1.085 MB / 0.5759 GB, free: 5.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3547, allocations: 12.03 kB / 0.5759 GB, free: 5.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.3548, allocations: 147.8 kB / 0.576 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.3551, allocations: 120.2 kB / 0.5762 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009021/0.356, allocations: 0.5146 MB / 0.5767 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/0.3561, allocations: 66 kB / 0.5767 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.3562, allocations: 95.95 kB / 0.5768 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.3577, allocations: 0.8892 MB / 0.5777 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/0.3577, allocations: 11.94 kB / 0.5777 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.517e-05/0.3578, allocations: 36 kB / 0.5777 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.3578, allocations: 27.94 kB / 0.5778 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3589, allocations: 0.5229 MB / 0.5783 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.3627, allocations: 3.516 MB / 0.5817 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/0.3633, allocations: 198.7 kB / 0.5819 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.3635, allocations: 100.8 kB / 0.582 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.3636, allocations: 19.98 kB / 0.582 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.3637, allocations: 38.5 kB / 0.582 GB, free: 14.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.414e-06/0.3637, allocations: 0 / 0.582 GB, free: 14.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002452/0.3661, allocations: 1.154 MB / 0.5832 GB, free: 13.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.3662, allocations: 63.34 kB / 0.5832 GB, free: 13.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.3666, allocations: 401.9 kB / 0.5836 GB, free: 13.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.3667, allocations: 29.7 kB / 0.5836 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/0.367, allocations: 491.4 kB / 0.5841 GB, free: 12.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.3671, allocations: 138.8 kB / 0.5842 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.3672, allocations: 98.3 kB / 0.5843 GB, free: 12.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.3674, allocations: 358.8 kB / 0.5847 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.3676, allocations: 113.3 kB / 0.5848 GB, free: 11.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003826/0.368, allocations: 315 kB / 0.5851 GB, free: 11.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006706/0.3687, allocations: 459.6 kB / 0.5855 GB, free: 11.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3687, allocations: 8 kB / 0.5855 GB, free: 11.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008524/0.3696, allocations: 0.5091 MB / 0.586 GB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3696, allocations: 10.34 kB / 0.586 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3696, allocations: 8 kB / 0.586 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.3698, allocations: 40.78 kB / 0.5861 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.3702, allocations: 128.4 kB / 0.5862 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004377/0.3706, allocations: 0.5602 MB / 0.5868 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.3708, allocations: 16 kB / 0.5868 GB, free: 9.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.3709, allocations: 24 kB / 0.5868 GB, free: 9.68 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.0003426/0.3712, allocations: 234.5 kB / 0.587 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.499e-05/0.3713, allocations: 51.61 kB / 0.5871 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006563/0.3719, allocations: 331 kB / 0.5874 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.372, allocations: 8.031 kB / 0.5874 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.372, allocations: 0 / 0.5874 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.372, allocations: 0 / 0.5874 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.3735, allocations: 1.035 MB / 0.5884 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3735, allocations: 4 kB / 0.5884 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.3739, allocations: 79.83 kB / 0.5885 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.374, allocations: 32.78 kB / 0.5885 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.3741, allocations: 16 kB / 0.5885 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003873/0.3745, allocations: 0.5486 MB / 0.5891 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3745, allocations: 0 / 0.5891 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007987/0.3753, allocations: 0.5602 MB / 0.5896 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.3753, allocations: 39.67 kB / 0.5896 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.699e-05/0.3754, allocations: 8 kB / 0.5897 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.3755, allocations: 12 kB / 0.5897 GB, free: 6.586 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.3756, allocations: 23.89 kB / 0.5897 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.3756, allocations: 19.98 kB / 0.5897 GB, free: 6.543 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003007/0.3759, allocations: 271.2 kB / 0.59 GB, free: 6.281 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3759, allocations: 0 / 0.59 GB, free: 6.281 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005744/0.3765, allocations: 128.1 kB / 0.5901 GB, free: 6.156 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.001142/0.3776, allocations: 1.113 MB / 0.5912 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006894/0.3783, allocations: 320.3 kB / 0.5915 GB, free: 4.684 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.3783, allocations: 4 kB / 0.5915 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.3786, allocations: 125.2 kB / 0.5916 GB, free: 4.559 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.3791, allocations: 85.38 kB / 0.5917 GB, free: 4.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006882/0.386, allocations: 4.858 MB / 0.5964 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006527/0.3867, allocations: 0.9602 MB / 0.5974 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.3869, allocations: 56.55 kB / 0.5974 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.3872, allocations: 295.3 kB / 0.5977 GB, free: 14.01 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3872, allocations: 0 / 0.5977 GB, free: 14.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03963/0.4269, allocations: 9.828 MB / 0.6073 GB, free: 4.285 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.81, allocations: 7.844 kB / 0.6073 GB, free: 4.281 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.718828777782619] 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'] 12.912064352072775 12.938054205 12.580270606 Calling exit ...