Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.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.001779/0.001779, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.002126/0.002126, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.448/1.448, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",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.001947/0.001947, allocations: 75.77 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1032, allocations: 53.32 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1912/0.2945, allocations: 5.457 MB / 432.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.2976, allocations: 2.15 MB / 434.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004545/0.298, allocations: 52 kB / 434.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003688/0.2984, allocations: 204.4 kB / 434.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003041/0.2987, allocations: 178.2 kB / 435 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006988/0.2994, allocations: 408.2 kB / 435.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007319/0.3001, allocations: 1.009 MB / 436.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005577/0.3007, allocations: 421.8 kB / 436.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.3011, allocations: 355.8 kB / 437.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003807/0.3015, allocations: 372.8 kB / 437.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.3016, allocations: 95.69 kB / 437.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.3019, allocations: 156.2 kB / 437.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.3021, allocations: 204.3 kB / 438 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.3024, allocations: 437.3 kB / 438.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.3037, allocations: 1.19 MB / 439.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3037, allocations: 0.5156 kB / 439.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3037, allocations: 0 / 439.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.3037, allocations: 0 / 439.6 MB, free: 5.297 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001418/0.3052, allocations: 1.059 MB / 440.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3052, allocations: 13.88 kB / 440.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.3053, allocations: 135.8 kB / 440.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.3056, allocations: 100.5 kB / 440.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006921/0.3063, allocations: 0.5231 MB / 441.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.3063, allocations: 59.41 kB / 441.5 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.3064, allocations: 93.41 kB / 441.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.3076, allocations: 0.8061 MB / 442.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.3077, allocations: 8.938 kB / 442.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.699e-05/0.3077, allocations: 32.12 kB / 442.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.3078, allocations: 20.12 kB / 442.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009255/0.3087, allocations: 0.4963 MB / 443 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/0.3115, allocations: 2.862 MB / 445.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.312, allocations: 211.3 kB / 446 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.3122, allocations: 101.5 kB / 446.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.3123, allocations: 247.2 kB / 446.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.3123, allocations: 48.62 kB / 446.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.3123, allocations: 0 / 446.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002096/0.3144, allocations: 1.265 MB / 447.7 MB, free: 20 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.3145, allocations: 54.53 kB / 447.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.3148, allocations: 308.2 kB / 448 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.3148, allocations: 35.05 kB / 448.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.3151, allocations: 412.5 kB / 448.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3152, allocations: 137 kB / 448.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3154, allocations: 90.95 kB / 448.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3155, allocations: 356.2 kB / 449 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.3157, allocations: 106.6 kB / 449.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.3161, allocations: 253.9 kB / 449.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/0.3166, allocations: 392.8 kB / 449.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3166, allocations: 1.219 kB / 449.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007576/0.3174, allocations: 462.1 kB / 450.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3174, allocations: 6.344 kB / 450.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3174, allocations: 9.562 kB / 450.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.3176, allocations: 34.2 kB / 450.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.3179, allocations: 112 kB / 450.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004316/0.3184, allocations: 0.5531 MB / 450.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.3185, allocations: 20.44 kB / 451 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.3186, allocations: 21.59 kB / 451 MB, free: 13.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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.0003006/0.3189, allocations: 218.1 kB / 451.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.3189, allocations: 42.42 kB / 451.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006369/0.3196, allocations: 325.4 kB / 451.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3196, allocations: 4 kB / 451.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3196, allocations: 0 / 451.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3196, allocations: 1.5 kB / 451.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.3212, allocations: 1.02 MB / 452.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3212, allocations: 1.125 kB / 452.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.3215, allocations: 81.09 kB / 452.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.3217, allocations: 30.03 kB / 452.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.3217, allocations: 18.98 kB / 452.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003916/0.3221, allocations: 0.5481 MB / 453.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3221, allocations: 1.156 kB / 453.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008104/0.3229, allocations: 0.5501 MB / 453.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.793e-05/0.323, allocations: 112.7 kB / 453.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.3231, allocations: 9.062 kB / 453.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.3232, allocations: 7.406 kB / 453.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.3233, allocations: 24.73 kB / 454 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.3233, allocations: 21.66 kB / 454 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002311/0.3235, allocations: 214.3 kB / 454.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3235, allocations: 0 / 454.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000533/0.3241, allocations: 119.1 kB / 454.3 MB, free: 11.42 MB / 366.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.phi,inertia2b.w,torqueToAngle2b.phi,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.001204/0.3253, allocations: 1.116 MB / 455.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005961/0.3259, allocations: 289.1 kB / 455.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.3259, allocations: 8.312 kB / 455.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.3261, allocations: 128.2 kB / 455.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.3266, allocations: 70.95 kB / 455.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006244/0.3329, allocations: 4.403 MB / 460.3 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006537/0.3335, allocations: 0.9253 MB / 461.2 MB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3337, allocations: 49.81 kB / 461.3 MB, free: 6.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.334, allocations: 244.5 kB / 461.5 MB, free: 6.43 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.334, allocations: 1.188 kB / 461.5 MB, free: 6.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.3698, allocations: 8.423 MB / 469.9 MB, free: 2.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.31, allocations: 4.766 kB / 470 MB, free: 2.754 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.838517928030342] 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.410576418042183 12.434833467 12.126527919 Calling exit ...