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.001883/0.001883, 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.002387/0.002387, 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 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.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001976/0.001976, allocations: 72.75 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2904, allocations: 53.36 MB / 431.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0149/0.3053, allocations: 12.25 MB / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007691/0.313, allocations: 3.327 MB / 447.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002792/0.3158, allocations: 43.81 kB / 447.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.3184, allocations: 0.6829 MB / 448.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.3212, allocations: 0.7911 MB / 449 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.3222, allocations: 407.4 kB / 449.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003491/0.3257, allocations: 2.42 MB / 451.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.3268, allocations: 0.65 MB / 452.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.3282, allocations: 0.934 MB / 453.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.3294, allocations: 0.9839 MB / 454.4 MB, free: 416 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.3297, allocations: 228 kB / 454.6 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.3302, allocations: 268 kB / 454.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003646/0.3306, allocations: 458.3 kB / 455.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.3316, allocations: 1.081 MB / 456.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.3348, allocations: 2.844 MB / 459.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3348, allocations: 0 / 459.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3348, allocations: 0 / 459.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.691e-05/0.3348, allocations: 0 / 459.3 MB, free: 11.53 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.003735/0.3386, allocations: 2.133 MB / 461.4 MB, free: 9.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3386, allocations: 12.03 kB / 461.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.3389, allocations: 224.1 kB / 461.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009071/0.3398, allocations: 295.5 kB / 461.9 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.3417, allocations: 1.055 MB / 463 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.225e-05/0.3418, allocations: 119.2 kB / 463.1 MB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.342, allocations: 159.9 kB / 463.2 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.3446, allocations: 1.5 MB / 464.8 MB, free: 5.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.3446, allocations: 15.94 kB / 464.8 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.3447, allocations: 68 kB / 464.8 MB, free: 5.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.3448, allocations: 36 kB / 464.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.3468, allocations: 1.049 MB / 465.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008289/0.3551, allocations: 6.101 MB / 472 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.3567, allocations: 0.5765 MB / 472.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000903/0.3576, allocations: 430.5 kB / 473 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.3576, allocations: 4.812 kB / 473 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/0.3577, allocations: 39.22 kB / 473.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.3577, allocations: 0 / 473.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005001/0.3627, allocations: 2.177 MB / 475.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.3628, allocations: 111.5 kB / 475.3 MB, free: 10.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001858/0.3646, allocations: 1.31 MB / 476.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.3647, allocations: 41.7 kB / 476.7 MB, free: 9.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007572/0.3654, allocations: 0.8671 MB / 477.6 MB, free: 8.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.3657, allocations: 273.7 kB / 477.8 MB, free: 8.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.366, allocations: 214.8 kB / 478 MB, free: 8.184 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3661, allocations: 341.9 kB / 478.4 MB, free: 7.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3667, allocations: 286.5 kB / 478.7 MB, free: 7.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009424/0.3677, allocations: 0.7385 MB / 479.4 MB, free: 6.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3692, allocations: 1.081 MB / 480.5 MB, free: 5.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.3693, allocations: 4 kB / 480.5 MB, free: 5.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002428/0.3717, allocations: 1.26 MB / 481.7 MB, free: 4.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.3717, allocations: 12.5 kB / 481.7 MB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.3717, allocations: 16 kB / 481.8 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005118/0.3722, allocations: 138.4 kB / 481.9 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.3731, allocations: 259.6 kB / 482.2 MB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.3772, allocations: 4.332 MB / 486.5 MB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009875/0.3782, allocations: 64.09 kB / 486.5 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-05/0.3783, allocations: 56 kB / 486.6 MB, free: 14.82 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.0006837/0.379, allocations: 353.3 kB / 486.9 MB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.3792, allocations: 155 kB / 487.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.381, allocations: 0.8179 MB / 487.9 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.381, allocations: 15.94 kB / 487.9 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.381, allocations: 7.938 kB / 487.9 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.381, allocations: 0 / 487.9 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00403/0.3851, allocations: 2.289 MB / 490.2 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3851, allocations: 4.031 kB / 490.2 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.3856, allocations: 131.9 kB / 490.4 MB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004563/0.3861, allocations: 142.3 kB / 490.5 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.3861, allocations: 19.98 kB / 490.5 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004448/0.3906, allocations: 4.474 MB / 495 MB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3906, allocations: 4 kB / 495 MB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.3931, allocations: 1.305 MB / 496.3 MB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.3936, allocations: 207 kB / 496.5 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.3937, allocations: 20 kB / 496.5 MB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/0.3943, allocations: 39.95 kB / 496.6 MB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.3945, allocations: 64.42 kB / 496.6 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.3945, allocations: 27.98 kB / 496.7 MB, free: 4.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001346/0.3959, allocations: 0.8781 MB / 497.5 MB, free: 3.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3959, allocations: 0 / 497.5 MB, free: 3.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001183/0.397, allocations: 324 kB / 497.8 MB, free: 3.004 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.002782/0.3998, allocations: 1.893 MB / 499.7 MB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.4019, allocations: 1.081 MB / 0.4891 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4019, allocations: 0 / 0.4891 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.4029, allocations: 0.695 MB / 0.4898 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.4045, allocations: 373.5 kB / 0.4901 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/0.4252, allocations: 11.71 MB / 0.5016 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.4262, allocations: 1.217 MB / 0.5027 GB, free: 1.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000736/0.4269, allocations: 171.6 kB / 0.5029 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/0.4278, allocations: 0.6164 MB / 0.5035 GB, free: 380 kB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4278, allocations: 0 / 0.5035 GB, free: 380 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08712/0.5149, allocations: 32.18 MB / 0.5349 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/15.23, allocations: 7.375 kB / 0.5349 GB, free: 0.5078 MB / 446.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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.92488391837105] 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.556356225162745 15.56646303 15.229398875 Calling exit ...