Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 110 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 51.88 kB / 366.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09647/0.09801, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01231/0.1103, allocations: 10.24 MB / 428.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00665/0.117, allocations: 3.232 MB / 432 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.1187, allocations: 75.5 kB / 432 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.1208, allocations: 0.7336 MB / 432.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003112/0.1239, allocations: 0.8777 MB / 433.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.1251, allocations: 411.4 kB / 434.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004245/0.1293, allocations: 2.965 MB / 437 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002592/0.1319, allocations: 1.786 MB / 438.8 MB, free: 8.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.1341, allocations: 1.378 MB / 440.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.137, allocations: 1.74 MB / 441.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007263/0.1377, allocations: 356 kB / 442.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.1389, allocations: 451.8 kB / 442.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.14, allocations: 1.028 MB / 443.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.1424, allocations: 1.61 MB / 445.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2074/0.3499, allocations: 4.687 MB / 450 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.3499, allocations: 3.281 kB / 450 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3499, allocations: 0 / 450 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001471/0.35, allocations: 0 / 450 MB, free: 15.59 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007121/0.3572, allocations: 3.34 MB / 453.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3572, allocations: 9.594 kB / 453.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.768e-05/0.3573, allocations: 62.25 kB / 453.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004772/0.3578, allocations: 338.9 kB / 453.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008904/0.3587, allocations: 345.1 kB / 454.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.3616, allocations: 1.758 MB / 455.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.3618, allocations: 183.8 kB / 456.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004252/0.3622, allocations: 232.4 kB / 456.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00561/0.3678, allocations: 3.137 MB / 459.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.349e-05/0.3679, allocations: 8.219 kB / 459.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002242/0.3681, allocations: 94.66 kB / 459.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.3682, allocations: 109.5 kB / 459.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004495/0.3727, allocations: 2.697 MB / 462.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.3884, allocations: 9.649 MB / 472 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.3908, allocations: 2.084 MB / 474.1 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001737/0.3925, allocations: 1.053 MB / 475.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002552/0.3928, allocations: 201 kB / 475.3 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3928, allocations: 52.81 kB / 475.4 MB, free: 5.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.218e-06/0.3928, allocations: 4.656 kB / 475.4 MB, free: 5.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=131): time 0.01383/0.4066, allocations: 6.866 MB / 482.2 MB, free: 1.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.4067, allocations: 69.53 kB / 482.3 MB, free: 1.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.4091, allocations: 1.741 MB / 484 MB, free: 0.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.4092, allocations: 53.05 kB / 484.1 MB, free: 460 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008367/0.4101, allocations: 1.182 MB / 485.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004748/0.4106, allocations: 474.5 kB / 485.7 MB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004853/0.411, allocations: 290.3 kB / 486 MB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4112, allocations: 308.9 kB / 486.3 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.4125, allocations: 0.7908 MB / 487.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.414, allocations: 1.205 MB / 488.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/0.4168, allocations: 2.093 MB / 490.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4168, allocations: 2.812 kB / 490.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004796/0.4216, allocations: 2.676 MB / 493.1 MB, free: 9.414 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.4216, allocations: 12 kB / 493.1 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/0.4216, allocations: 12.86 kB / 493.1 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.4227, allocations: 422 kB / 493.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.424, allocations: 358.5 kB / 493.9 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/0.4315, allocations: 7.084 MB / 0.4892 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4331, allocations: 107.8 kB / 0.4893 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.4332, allocations: 61.31 kB / 0.4894 GB, free: 1.031 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001596/0.4348, allocations: 0.7955 MB / 0.4902 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004359/0.4353, allocations: 198.8 kB / 0.4904 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.4395, allocations: 2.376 MB / 0.4927 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.4395, allocations: 19.98 kB / 0.4927 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.4395, allocations: 4 kB / 0.4927 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.4396, allocations: 3.984 kB / 0.4927 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009133/0.4487, allocations: 5.095 MB / 0.4977 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.4487, allocations: 4 kB / 0.4977 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4497, allocations: 234.9 kB / 0.4979 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/0.4509, allocations: 447.7 kB / 0.4983 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.451, allocations: 31.98 kB / 0.4984 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008959/0.46, allocations: 8.653 MB / 0.5068 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.46, allocations: 4 kB / 0.5068 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006153/0.4662, allocations: 3.521 MB / 0.5103 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.4674, allocations: 450.2 kB / 0.5107 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.4676, allocations: 28 kB / 0.5107 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009344/0.4685, allocations: 91.89 kB / 0.5108 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/0.4689, allocations: 116.2 kB / 0.5109 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.019e-05/0.4689, allocations: 43.98 kB / 0.5109 GB, free: 10.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.4711, allocations: 1.194 MB / 0.5121 GB, free: 9.105 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4711, allocations: 0 / 0.5121 GB, free: 9.105 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002032/0.4731, allocations: 0.5038 MB / 0.5126 GB, free: 8.602 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.006317/0.4794, allocations: 4.171 MB / 0.5167 GB, free: 4.367 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.4837, allocations: 2.383 MB / 0.519 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.4837, allocations: 0 / 0.519 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.4863, allocations: 1.559 MB / 0.5205 GB, free: 396 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.4887, allocations: 469.8 kB / 0.521 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03146/0.5202, allocations: 19.49 MB / 0.54 GB, free: 11.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/0.5222, allocations: 1.993 MB / 0.542 GB, free: 9.859 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.5237, allocations: 447.5 kB / 0.5424 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.525, allocations: 0.9211 MB / 0.5433 GB, free: 8.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.525, allocations: 3.938 kB / 0.5433 GB, free: 8.496 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/0.635, allocations: 48.24 MB / 0.5904 GB, free: 8.766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.93/26.57, allocations: 4.062 kB / 0.5904 GB, free: 8.762 MB / 494.1 MB " [Timeout remaining time 633] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.959779374999925] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]'] 26.74300883797696 26.75669543 26.403747088 Calling exit ...