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.001751/0.001751, allocations: 121.6 kB / 18.5 MB, free: 4.578 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.002068/0.002068, allocations: 205 kB / 21.45 MB, free: 1.629 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.447/1.447, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.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.001982/0.001982, allocations: 67.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.1003, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.1994/0.2997, allocations: 11.01 MB / 438 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006656/0.3064, allocations: 3.68 MB / 441.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.3087, allocations: 84.41 kB / 441.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002538/0.3113, allocations: 0.8793 MB / 442.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003323/0.3146, allocations: 0.914 MB / 443.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.3159, allocations: 461.7 kB / 444 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003986/0.3199, allocations: 2.952 MB / 447 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00285/0.3228, allocations: 1.985 MB / 449 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3256, allocations: 1.416 MB / 450.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003499/0.3291, allocations: 1.792 MB / 452.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009744/0.3301, allocations: 373 kB / 452.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.3317, allocations: 491.3 kB / 453 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.3333, allocations: 1.074 MB / 454.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003649/0.3369, allocations: 1.679 MB / 455.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007501/0.3444, allocations: 4.912 MB / 460.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3444, allocations: 1.125 kB / 460.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3444, allocations: 0 / 460.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.3446, allocations: 0 / 460.7 MB, free: 9.695 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.009065/0.3537, allocations: 3.488 MB / 464.2 MB, free: 7.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3537, allocations: 10.12 kB / 464.2 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006583/0.3544, allocations: 363.6 kB / 464.5 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.3555, allocations: 361.5 kB / 464.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.3592, allocations: 1.844 MB / 466.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.3594, allocations: 187.7 kB / 466.9 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004558/0.3598, allocations: 250 kB / 467.2 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00651/0.3663, allocations: 3.288 MB / 470.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-05/0.3664, allocations: 7.25 kB / 470.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002612/0.3667, allocations: 97.75 kB / 470.6 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.3668, allocations: 127.7 kB / 470.7 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005224/0.3721, allocations: 2.751 MB / 473.4 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01834/0.3904, allocations: 10.4 MB / 483.8 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/0.3924, allocations: 1.294 MB / 485.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3937, allocations: 0.6954 MB / 485.8 MB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003249/0.394, allocations: 212.2 kB / 486 MB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.394, allocations: 41.81 kB / 486.1 MB, free: 5.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 5.15e-06/0.394, allocations: 4 kB / 486.1 MB, free: 5.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01659/0.4106, allocations: 6.945 MB / 493 MB, free: 14.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.4107, allocations: 68.41 kB / 493.1 MB, free: 14.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.4138, allocations: 1.794 MB / 494.9 MB, free: 12.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001747/0.414, allocations: 45.7 kB / 494.9 MB, free: 12.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.4151, allocations: 1.306 MB / 496.2 MB, free: 10.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005323/0.4156, allocations: 456.1 kB / 496.7 MB, free: 10.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000576/0.4162, allocations: 295.5 kB / 497 MB, free: 10.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4164, allocations: 305.1 kB / 497.3 MB, free: 9.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.4177, allocations: 0.7807 MB / 498 MB, free: 9.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.4194, allocations: 1.288 MB / 499.3 MB, free: 7.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003042/0.4224, allocations: 2.21 MB / 0.4898 GB, free: 5.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.4224, allocations: 4 kB / 0.4898 GB, free: 5.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004376/0.4268, allocations: 2.483 MB / 0.4922 GB, free: 2.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.4268, allocations: 12.62 kB / 0.4922 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.4269, allocations: 16 kB / 0.4922 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006557/0.4275, allocations: 239.5 kB / 0.4925 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.429, allocations: 419.3 kB / 0.4929 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/0.4321, allocations: 3.24 MB / 0.496 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4338, allocations: 135.8 kB / 0.4962 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.4339, allocations: 73.62 kB / 0.4962 GB, free: 14.23 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.001558/0.4355, allocations: 0.8173 MB / 0.497 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004194/0.4359, allocations: 190.8 kB / 0.4972 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/0.4396, allocations: 2.042 MB / 0.4992 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.4396, allocations: 16 kB / 0.4992 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.4396, allocations: 5.984 kB / 0.4992 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.4396, allocations: 3.984 kB / 0.4992 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008442/0.448, allocations: 4.741 MB / 0.5039 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.448, allocations: 0 / 0.5039 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.4492, allocations: 263.6 kB / 0.5041 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005744/0.4498, allocations: 203.2 kB / 0.5043 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.171e-05/0.4499, allocations: 31.92 kB / 0.5043 GB, free: 5.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00294/0.4529, allocations: 3.217 MB / 0.5075 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4529, allocations: 0 / 0.5075 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005024/0.4579, allocations: 3.144 MB / 0.5106 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.459, allocations: 435.8 kB / 0.511 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.4592, allocations: 23.98 kB / 0.511 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/0.4602, allocations: 99.75 kB / 0.5111 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.4604, allocations: 80.89 kB / 0.5112 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.034e-05/0.4605, allocations: 32.06 kB / 0.5112 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002035/0.4625, allocations: 1.228 MB / 0.5124 GB, free: 13.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4625, allocations: 0 / 0.5124 GB, free: 13.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00179/0.4643, allocations: 491.9 kB / 0.5129 GB, free: 12.71 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.005442/0.4698, allocations: 3.78 MB / 0.5166 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003848/0.4736, allocations: 2.272 MB / 0.5188 GB, free: 6.535 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4736, allocations: 4.25 kB / 0.5188 GB, free: 6.531 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.4756, allocations: 1.268 MB / 0.52 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.4782, allocations: 0.4931 MB / 0.5205 GB, free: 4.727 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/0.5097, allocations: 18.78 MB / 0.5388 GB, free: 1.195 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/0.5117, allocations: 2.018 MB / 0.5408 GB, free: 15.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001571/0.5133, allocations: 0.5038 MB / 0.5413 GB, free: 14.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.5148, allocations: 1.015 MB / 0.5423 GB, free: 13.62 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5148, allocations: 0 / 0.5423 GB, free: 13.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1046/0.6194, allocations: 46.5 MB / 0.5877 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.68, allocations: 7.688 kB / 0.5877 GB, free: 15.58 MB / 0.4981 GB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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: 16.27946710307151] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'multiSensor.flange_a.phi'] 13.787910989951342 13.802723036 13.45502554 Calling exit ...