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.001802/0.001802, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.002189/0.002189, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.43/1.43, allocations: 230.4 MB / 254.7 MB, free: 15.23 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.00196/0.00196, allocations: 59.91 kB / 373.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1132, allocations: 53.32 MB / 426.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.229/0.3422, allocations: 5.457 MB / 432.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003663/0.3459, allocations: 2.149 MB / 434.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006226/0.3465, allocations: 36.09 kB / 434.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004473/0.347, allocations: 207.9 kB / 434.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003695/0.3473, allocations: 179.9 kB / 434.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008858/0.3482, allocations: 400.6 kB / 435.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000911/0.3491, allocations: 1.015 MB / 436.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005968/0.3497, allocations: 425 kB / 436.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.3502, allocations: 341.2 kB / 437.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003905/0.3505, allocations: 374.1 kB / 437.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.3507, allocations: 92.38 kB / 437.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002975/0.351, allocations: 159.5 kB / 437.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.3511, allocations: 200.9 kB / 437.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.3515, allocations: 436.6 kB / 438.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.3529, allocations: 1.191 MB / 439.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3529, allocations: 0.5625 kB / 439.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3529, allocations: 5.062 kB / 439.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3529, allocations: 0 / 439.5 MB, free: 5.469 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.001509/0.3544, allocations: 1.057 MB / 440.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3545, allocations: 8.719 kB / 440.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.3546, allocations: 136.1 kB / 440.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.3549, allocations: 102.2 kB / 440.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008631/0.3558, allocations: 0.5241 MB / 441.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.3558, allocations: 59.78 kB / 441.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.3559, allocations: 92.72 kB / 441.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.3574, allocations: 0.806 MB / 442.3 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.137e-05/0.3574, allocations: 7.156 kB / 442.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.3575, allocations: 36.19 kB / 442.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.3575, allocations: 25.66 kB / 442.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.3585, allocations: 0.4913 MB / 442.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003362/0.3619, allocations: 2.864 MB / 445.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.3624, allocations: 209.7 kB / 445.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.3626, allocations: 94.02 kB / 446 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002095/0.3628, allocations: 246.7 kB / 446.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.3629, allocations: 48.36 kB / 446.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.3629, allocations: 0 / 446.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002465/0.3653, allocations: 1.269 MB / 447.5 MB, free: 196 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.3654, allocations: 55 kB / 447.6 MB, free: 132 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.3658, allocations: 315.1 kB / 447.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.3659, allocations: 31.88 kB / 447.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.3663, allocations: 412.1 kB / 448.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3664, allocations: 138.6 kB / 448.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3665, allocations: 90.58 kB / 448.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002295/0.3668, allocations: 353.3 kB / 448.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.367, allocations: 105.4 kB / 449 MB, free: 15.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.3674, allocations: 255 kB / 449.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.368, allocations: 390.7 kB / 449.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.368, allocations: 2.344 kB / 449.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008757/0.3689, allocations: 461.4 kB / 450.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.3689, allocations: 7.344 kB / 450.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3689, allocations: 5.219 kB / 450.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.3691, allocations: 34 kB / 450.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.3695, allocations: 116.1 kB / 450.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004814/0.37, allocations: 0.5595 MB / 450.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.3702, allocations: 15.38 kB / 450.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.3702, allocations: 22.59 kB / 450.8 MB, free: 13.77 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.0003126/0.3705, allocations: 222.5 kB / 451.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.3706, allocations: 41.19 kB / 451.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000663/0.3713, allocations: 321.8 kB / 451.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3713, allocations: 3.891 kB / 451.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3713, allocations: 8.094 kB / 451.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3713, allocations: 1.969 kB / 451.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.3731, allocations: 1.019 MB / 452.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3731, allocations: 2.125 kB / 452.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.3735, allocations: 80.55 kB / 452.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.3736, allocations: 31.72 kB / 452.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.3737, allocations: 11.81 kB / 452.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003971/0.3741, allocations: 0.5498 MB / 453.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3741, allocations: 2.25 kB / 453.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.3749, allocations: 0.5492 MB / 453.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.375, allocations: 108.7 kB / 453.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.375, allocations: 8.5 kB / 453.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.3752, allocations: 13.03 kB / 453.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.3752, allocations: 24.02 kB / 453.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.3752, allocations: 17.33 kB / 453.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.3755, allocations: 213.6 kB / 454 MB, free: 11.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3755, allocations: 4 kB / 454.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006375/0.3761, allocations: 118.9 kB / 454.2 MB, free: 11.61 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.001293/0.3774, allocations: 1.112 MB / 455.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000661/0.3781, allocations: 294.2 kB / 455.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3781, allocations: 0 / 455.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.3783, allocations: 135.4 kB / 455.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.3789, allocations: 70.94 kB / 455.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006576/0.3854, allocations: 4.412 MB / 460.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007307/0.3862, allocations: 0.9214 MB / 461.1 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.3864, allocations: 49.48 kB / 461.1 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.3867, allocations: 246.8 kB / 461.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3867, allocations: 0 / 461.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03947/0.4261, allocations: 8.423 MB / 469.8 MB, free: 2.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.46, allocations: 15.12 kB / 469.8 MB, free: 2.918 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.814685218036175] 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.551266986876726 12.565236006 12.209239389 Calling exit ...