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_QuasiStatic.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.001687/0.001687, 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.001893/0.001893, allocations: 213.2 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.497/1.497, allocations: 230.6 MB / 258.3 MB, free: 8.012 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_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.002385/0.002385, allocations: 72.75 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3566, allocations: 53.37 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01377/0.3703, allocations: 11.85 MB / 443.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006728/0.377, allocations: 3.265 MB / 447 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.3786, allocations: 47.81 kB / 447.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.3804, allocations: 0.6722 MB / 447.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002171/0.3826, allocations: 0.7329 MB / 448.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008816/0.3834, allocations: 395.5 kB / 448.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.3863, allocations: 2.246 MB / 451.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.3874, allocations: 0.6537 MB / 451.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.3888, allocations: 0.8678 MB / 452.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.39, allocations: 0.9178 MB / 453.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003197/0.3904, allocations: 216 kB / 453.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000507/0.3909, allocations: 256 kB / 454 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003585/0.3912, allocations: 438.4 kB / 454.5 MB, free: 172 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00103/0.3923, allocations: 1.015 MB / 455.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003049/0.3953, allocations: 2.685 MB / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3953, allocations: 3.984 kB / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3953, allocations: 0 / 458.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.568e-05/0.3954, allocations: 4 kB / 458.2 MB, free: 12.44 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003664/0.399, allocations: 2.037 MB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3991, allocations: 8.031 kB / 460.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002621/0.3993, allocations: 224 kB / 460.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007829/0.4001, allocations: 263.6 kB / 460.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.4019, allocations: 0.9764 MB / 461.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.402, allocations: 123.2 kB / 461.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.4022, allocations: 156 kB / 461.9 MB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.4048, allocations: 1.487 MB / 463.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.675e-05/0.4049, allocations: 8 kB / 463.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.405, allocations: 60 kB / 463.5 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.924e-05/0.405, allocations: 44 kB / 463.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002116/0.4071, allocations: 0.9746 MB / 464.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009914/0.417, allocations: 6.392 MB / 470.9 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008833/0.4179, allocations: 379.1 kB / 471.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.4184, allocations: 202.1 kB / 471.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.4184, allocations: 4.438 kB / 471.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005708/0.419, allocations: 268.8 kB / 471.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.419, allocations: 3.938 kB / 471.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.00358/0.4226, allocations: 1.564 MB / 473.3 MB, free: 12.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.4227, allocations: 162.7 kB / 473.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.4246, allocations: 1.281 MB / 474.7 MB, free: 11.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.4247, allocations: 33.7 kB / 474.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008059/0.4255, allocations: 0.8973 MB / 475.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.4257, allocations: 222.2 kB / 475.9 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/0.426, allocations: 222.7 kB / 476.1 MB, free: 9.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.4262, allocations: 353.9 kB / 476.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.4266, allocations: 226.5 kB / 476.7 MB, free: 9.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.4276, allocations: 0.8111 MB / 477.5 MB, free: 8.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.4292, allocations: 1.109 MB / 478.6 MB, free: 6.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.4292, allocations: 4 kB / 478.6 MB, free: 6.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002145/0.4313, allocations: 1.184 MB / 479.8 MB, free: 5.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.4314, allocations: 37.7 kB / 479.8 MB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.4314, allocations: 20 kB / 479.8 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.4317, allocations: 78.31 kB / 479.9 MB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.4324, allocations: 263.5 kB / 480.2 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.4348, allocations: 2.574 MB / 482.7 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.4358, allocations: 63.92 kB / 482.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.89e-05/0.4359, allocations: 68.09 kB / 482.9 MB, free: 2.266 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007133/0.4366, allocations: 353.3 kB / 483.2 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.4368, allocations: 143.1 kB / 483.4 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.4379, allocations: 0.5513 MB / 483.9 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4379, allocations: 8.094 kB / 483.9 MB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.438, allocations: 3.984 kB / 483.9 MB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.438, allocations: 0 / 483.9 MB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.441, allocations: 1.826 MB / 485.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.441, allocations: 11.92 kB / 485.8 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.4414, allocations: 99.89 kB / 485.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001644/0.4416, allocations: 45.69 kB / 485.9 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.4416, allocations: 20 kB / 485.9 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.4439, allocations: 2.535 MB / 488.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.4439, allocations: 12.09 kB / 488.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.4456, allocations: 0.9305 MB / 489.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004906/0.446, allocations: 183.1 kB / 489.6 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.4462, allocations: 16 kB / 489.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.4467, allocations: 27.97 kB / 489.6 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.4468, allocations: 59.8 kB / 489.7 MB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.4468, allocations: 19.98 kB / 489.7 MB, free: 10.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001355/0.4482, allocations: 0.85 MB / 490.5 MB, free: 10.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4482, allocations: 0 / 490.5 MB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001229/0.4494, allocations: 311.9 kB / 490.8 MB, free: 9.832 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002094/0.4515, allocations: 1.512 MB / 492.4 MB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4533, allocations: 0.8937 MB / 493.3 MB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4533, allocations: 0 / 493.3 MB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.454, allocations: 461 kB / 493.7 MB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.4555, allocations: 338.1 kB / 494 MB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/0.4731, allocations: 10.93 MB / 0.4931 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.4742, allocations: 1.178 MB / 0.4943 GB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006218/0.4748, allocations: 175.3 kB / 0.4944 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007118/0.4755, allocations: 0.5696 MB / 0.495 GB, free: 8.809 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4755, allocations: 0 / 0.495 GB, free: 8.809 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07885/0.5544, allocations: 28.73 MB / 0.5231 GB, free: 12.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.61, allocations: 3.938 kB / 0.5231 GB, free: 12.37 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_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_QuasiStatic.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.323593359906226] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.ia', 'dcpm1.tauElectrical', 'dcpm2.ia', 'dcpm2.tauElectrical', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 12.718530219979584 12.924133991 12.346421733 Calling exit ...