Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001203/0.001203, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.001353/0.001353, allocations: 217.4 kB / 23 MB, free: 5.605 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.421/1.421, allocations: 230.4 MB / 256.5 MB, free: 8.438 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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.00188/0.00188, allocations: 71.83 kB / 376.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.298, allocations: 53.32 MB / 429.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01444/0.3125, allocations: 12.25 MB / 441.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006931/0.3194, allocations: 3.315 MB / 445.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.3214, allocations: 35.94 kB / 445.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.3237, allocations: 0.6917 MB / 445.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002938/0.3267, allocations: 0.7911 MB / 446.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.3279, allocations: 403.4 kB / 447 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004005/0.3319, allocations: 2.415 MB / 449.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.3331, allocations: 0.6535 MB / 450.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.3347, allocations: 0.9144 MB / 451 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.336, allocations: 0.9801 MB / 452 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003046/0.3363, allocations: 228 kB / 452.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005148/0.3368, allocations: 272 kB / 452.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.3372, allocations: 462.3 kB / 452.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.3384, allocations: 1.069 MB / 454 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003394/0.3417, allocations: 2.841 MB / 456.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3418, allocations: 3.938 kB / 456.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3418, allocations: 0 / 456.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.471e-05/0.3418, allocations: 3.938 kB / 456.8 MB, free: 11.97 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004115/0.3459, allocations: 2.213 MB / 459 MB, free: 9.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.346, allocations: 16.03 kB / 459.1 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002829/0.3463, allocations: 220.1 kB / 459.3 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009153/0.3472, allocations: 287.5 kB / 459.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.3491, allocations: 1.135 MB / 460.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.609e-05/0.3492, allocations: 119.2 kB / 460.8 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.3494, allocations: 163.9 kB / 461 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.352, allocations: 1.504 MB / 462.5 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.67e-05/0.3521, allocations: 11.89 kB / 462.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.3522, allocations: 60 kB / 462.5 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.652e-05/0.3522, allocations: 40 kB / 462.6 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.3543, allocations: 1.053 MB / 463.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008923/0.3633, allocations: 6.247 MB / 469.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.3648, allocations: 0.5685 MB / 470.5 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009607/0.3658, allocations: 438.2 kB / 470.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.3658, allocations: 8.562 kB / 470.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3658, allocations: 39.12 kB / 470.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.124e-06/0.3658, allocations: 0 / 470.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005386/0.3712, allocations: 2.398 MB / 473.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.3713, allocations: 111.5 kB / 473.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/0.3733, allocations: 1.306 MB / 474.7 MB, free: 9.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.3734, allocations: 41.7 kB / 474.8 MB, free: 9.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007146/0.3741, allocations: 0.871 MB / 475.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.3743, allocations: 269.8 kB / 475.9 MB, free: 8.234 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003005/0.3746, allocations: 210.8 kB / 476.1 MB, free: 8.023 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3748, allocations: 349.9 kB / 476.5 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006059/0.3754, allocations: 282.5 kB / 476.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009682/0.3764, allocations: 0.7342 MB / 477.5 MB, free: 6.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.3781, allocations: 1.092 MB / 478.6 MB, free: 5.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.3781, allocations: 4 kB / 478.6 MB, free: 5.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002665/0.3807, allocations: 1.261 MB / 479.8 MB, free: 3.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.3808, allocations: 15.98 kB / 479.8 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.3808, allocations: 16 kB / 479.9 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005474/0.3813, allocations: 130.8 kB / 480 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008432/0.3822, allocations: 259.6 kB / 480.2 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004643/0.3868, allocations: 4.631 MB / 484.9 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.3879, allocations: 63.88 kB / 484.9 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.91e-05/0.388, allocations: 55.98 kB / 485 MB, free: 14.28 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006498/0.3886, allocations: 361.6 kB / 485.3 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.3889, allocations: 143.1 kB / 485.5 MB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3907, allocations: 0.8372 MB / 486.3 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3907, allocations: 11.94 kB / 486.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3907, allocations: 0 / 486.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3907, allocations: 3.984 kB / 486.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/0.3949, allocations: 2.319 MB / 488.7 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3949, allocations: 7.938 kB / 488.7 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.3955, allocations: 135.8 kB / 488.8 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004597/0.3959, allocations: 134.8 kB / 488.9 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.895e-05/0.396, allocations: 20 kB / 488.9 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004658/0.4007, allocations: 4.78 MB / 493.7 MB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.4007, allocations: 4 kB / 493.7 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4032, allocations: 1.308 MB / 495 MB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005861/0.4038, allocations: 292 kB / 495.3 MB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.404, allocations: 24 kB / 495.3 MB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006078/0.4046, allocations: 35.97 kB / 495.4 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.4047, allocations: 60.36 kB / 495.4 MB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.836e-05/0.4048, allocations: 32 kB / 495.5 MB, free: 3.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.4062, allocations: 0.8742 MB / 496.3 MB, free: 2.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4062, allocations: 0 / 496.3 MB, free: 2.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001289/0.4075, allocations: 328 kB / 496.7 MB, free: 1.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00285/0.4103, allocations: 1.885 MB / 498.6 MB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.4124, allocations: 1.094 MB / 499.6 MB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4124, allocations: 0 / 499.6 MB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.4136, allocations: 0.6837 MB / 0.4886 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.4153, allocations: 371 kB / 0.489 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/0.4349, allocations: 11.72 MB / 0.5004 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009246/0.4358, allocations: 1.21 MB / 0.5016 GB, free: 88 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007045/0.4365, allocations: 183.6 kB / 0.5018 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008202/0.4374, allocations: 0.6125 MB / 0.5024 GB, free: 15.29 MB / 430.1 MB Notification: Performance of SimCode: time 2.023e-06/0.4374, allocations: 0 / 0.5024 GB, free: 15.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08076/0.5181, allocations: 31.49 MB / 0.5331 GB, free: 116 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/14.95, allocations: 15.25 kB / 0.5331 GB, free: 108 kB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.357997282000724] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.la.i', 'dcpm2.la.i', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 15.065297040011501 15.081933757 14.736818884 Calling exit ...