Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001533/0.001533, allocations: 105 kB / 19.74 MB, free: 2.453 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.001547/0.001547, allocations: 216.9 kB / 22.92 MB, free: 5.195 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.304/1.304, allocations: 230.5 MB / 256.4 MB, free: 8.258 MB / 206.1 MB " [Timeout remaining time 179] 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.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.001771/0.001771, allocations: 75.81 kB / 376.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2213, allocations: 53.32 MB / 429.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01226/0.2336, allocations: 11.06 MB / 440.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006017/0.2396, allocations: 3.688 MB / 444.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008602/0.2404, allocations: 67.69 kB / 444.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.2421, allocations: 0.8775 MB / 445.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001872/0.244, allocations: 0.9126 MB / 446 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000824/0.2448, allocations: 467.2 kB / 446.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002847/0.2476, allocations: 2.949 MB / 449.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/0.2495, allocations: 1.56 MB / 451 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.2511, allocations: 1.39 MB / 452.4 MB, free: 352 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002198/0.2533, allocations: 1.802 MB / 454.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004734/0.2538, allocations: 372 kB / 454.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008066/0.2546, allocations: 483.7 kB / 455 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.2556, allocations: 1.095 MB / 456.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.2572, allocations: 1.672 MB / 457.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.2619, allocations: 4.913 MB / 462.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2619, allocations: 0 / 462.7 MB, free: 5.992 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2619, allocations: 3.938 kB / 462.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.04e-05/0.262, allocations: 4 kB / 462.7 MB, free: 5.984 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005928/0.2679, allocations: 3.473 MB / 466.2 MB, free: 2.441 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2679, allocations: 12.03 kB / 466.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004381/0.2684, allocations: 363 kB / 466.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008353/0.2692, allocations: 366.8 kB / 466.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00271/0.2719, allocations: 1.836 MB / 468.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.272, allocations: 193.2 kB / 468.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003492/0.2724, allocations: 255.9 kB / 469.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004754/0.2772, allocations: 3.279 MB / 472.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.535e-05/0.2772, allocations: 11.94 kB / 472.5 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/0.2774, allocations: 99.98 kB / 472.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.2775, allocations: 124.9 kB / 472.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004293/0.2818, allocations: 2.752 MB / 475.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01385/0.2957, allocations: 10.41 MB / 485.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.2975, allocations: 1.306 MB / 487.1 MB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.2986, allocations: 0.7043 MB / 487.9 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002817/0.2989, allocations: 203.2 kB / 488.1 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.299, allocations: 51.44 kB / 488.1 MB, free: 11.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.886e-06/0.299, allocations: 0 / 488.1 MB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01412/0.3131, allocations: 6.931 MB / 495 MB, free: 4.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.3131, allocations: 68.41 kB / 495.1 MB, free: 4.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/0.3155, allocations: 1.794 MB / 496.9 MB, free: 2.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.016e-05/0.3156, allocations: 41.7 kB / 496.9 MB, free: 2.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009437/0.3165, allocations: 1.31 MB / 498.2 MB, free: 1.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.3169, allocations: 452.1 kB / 498.7 MB, free: 1.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004518/0.3173, allocations: 299.5 kB / 499 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3175, allocations: 305.1 kB / 499.3 MB, free: 0.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.3186, allocations: 0.7731 MB / 0.4883 GB, free: 15.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.3202, allocations: 1.292 MB / 0.4896 GB, free: 14.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.323, allocations: 2.214 MB / 0.4918 GB, free: 11.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.323, allocations: 4 kB / 0.4918 GB, free: 11.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004033/0.3271, allocations: 2.479 MB / 0.4942 GB, free: 9.301 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3271, allocations: 12 kB / 0.4942 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.3271, allocations: 24.09 kB / 0.4942 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006024/0.3277, allocations: 239.2 kB / 0.4944 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/0.3291, allocations: 415.3 kB / 0.4948 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.332, allocations: 3.239 MB / 0.498 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.3333, allocations: 135.7 kB / 0.4981 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.3334, allocations: 75.92 kB / 0.4982 GB, free: 4.875 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001328/0.3348, allocations: 0.8289 MB / 0.499 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003113/0.3351, allocations: 190.8 kB / 0.4992 GB, free: 3.848 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.3384, allocations: 2.039 MB / 0.5012 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.3384, allocations: 12 kB / 0.5012 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3384, allocations: 0 / 0.5012 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.3384, allocations: 12.05 kB / 0.5012 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007172/0.3456, allocations: 4.733 MB / 0.5058 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.3456, allocations: 4 kB / 0.5058 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.3466, allocations: 267.5 kB / 0.5061 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005416/0.3472, allocations: 203.5 kB / 0.5063 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.3472, allocations: 24 kB / 0.5063 GB, free: 12.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/0.35, allocations: 3.226 MB / 0.5095 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.758e-06/0.35, allocations: 8.062 kB / 0.5095 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.3544, allocations: 3.136 MB / 0.5125 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007565/0.3551, allocations: 431.7 kB / 0.5129 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.3553, allocations: 27.94 kB / 0.513 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008896/0.3562, allocations: 95.94 kB / 0.5131 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.3564, allocations: 84.81 kB / 0.5131 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.914e-05/0.3564, allocations: 32 kB / 0.5132 GB, free: 5.051 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001734/0.3582, allocations: 1.22 MB / 0.5144 GB, free: 3.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3582, allocations: 3.938 kB / 0.5144 GB, free: 3.836 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001428/0.3596, allocations: 495.9 kB / 0.5148 GB, free: 3.352 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,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.005091/0.3647, allocations: 3.784 MB / 0.5185 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003553/0.3683, allocations: 2.272 MB / 0.5207 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3683, allocations: 0 / 0.5207 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.37, allocations: 1.277 MB / 0.522 GB, free: 11.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.3721, allocations: 499 kB / 0.5225 GB, free: 11.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/0.3985, allocations: 18.81 MB / 0.5408 GB, free: 7.781 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.4002, allocations: 2.01 MB / 0.5428 GB, free: 5.734 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.4015, allocations: 0.4999 MB / 0.5433 GB, free: 5.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/0.4028, allocations: 1.011 MB / 0.5443 GB, free: 4.219 MB / 462.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4028, allocations: 0 / 0.5443 GB, free: 4.219 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2451/0.6479, allocations: 46.57 MB / 0.5898 GB, free: 86.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/12.04, allocations: 10.41 kB / 0.5898 GB, free: 86.6 MB / 462.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.26779246100341]