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.001645/0.001645, 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.002147/0.002147, 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.499/1.499, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.001996/0.001996, allocations: 64.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2894, allocations: 53.36 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01412/0.3036, allocations: 11.06 MB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008199/0.3118, allocations: 3.708 MB / 446.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.314, allocations: 83.44 kB / 446.8 MB, free: 8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002673/0.3167, allocations: 0.8775 MB / 447.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003625/0.3203, allocations: 0.9126 MB / 448.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.3218, allocations: 483.1 kB / 449 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004585/0.3264, allocations: 2.957 MB / 452 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.3291, allocations: 1.564 MB / 453.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.3315, allocations: 1.421 MB / 455 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003315/0.3349, allocations: 1.798 MB / 456.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000931/0.3358, allocations: 372 kB / 457.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001273/0.3371, allocations: 483.8 kB / 457.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001298/0.3384, allocations: 1.099 MB / 458.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002867/0.3412, allocations: 1.676 MB / 460.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006825/0.348, allocations: 4.912 MB / 465.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.3481, allocations: 0 / 465.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3481, allocations: 0 / 465.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001595/0.3482, allocations: 0 / 465.3 MB, free: 5.352 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.009127/0.3573, allocations: 3.409 MB / 468.7 MB, free: 1.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.3574, allocations: 8.031 kB / 468.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006105/0.358, allocations: 367 kB / 469.1 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.3591, allocations: 370.8 kB / 469.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/0.3627, allocations: 1.74 MB / 471.2 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.3628, allocations: 197.1 kB / 471.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004482/0.3633, allocations: 252 kB / 471.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00616/0.3694, allocations: 3.279 MB / 474.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.639e-05/0.3695, allocations: 7.984 kB / 474.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/0.3698, allocations: 104 kB / 475 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/0.3699, allocations: 124.9 kB / 475.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005098/0.375, allocations: 2.752 MB / 477.9 MB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01775/0.3927, allocations: 10.22 MB / 488.1 MB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.3946, allocations: 1.07 MB / 489.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3959, allocations: 0.7071 MB / 489.9 MB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002476/0.3961, allocations: 58.03 kB / 489.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.387e-05/0.3962, allocations: 43.56 kB / 490 MB, free: 12.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 5.48e-06/0.3962, allocations: 3.984 kB / 490 MB, free: 12.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01567/0.4119, allocations: 6.633 MB / 496.6 MB, free: 5.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.4119, allocations: 64.41 kB / 496.7 MB, free: 5.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/0.4148, allocations: 1.794 MB / 498.5 MB, free: 3.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00016/0.415, allocations: 45.7 kB / 498.5 MB, free: 3.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.4161, allocations: 1.31 MB / 499.8 MB, free: 2.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004634/0.4165, allocations: 456.1 kB / 0.4885 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004868/0.417, allocations: 291.5 kB / 0.4888 GB, free: 1.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4172, allocations: 309.1 kB / 0.4891 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.4185, allocations: 0.7769 MB / 0.4899 GB, free: 352 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/0.4202, allocations: 1.288 MB / 0.4911 GB, free: 14.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003174/0.4234, allocations: 2.218 MB / 0.4933 GB, free: 12.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.4234, allocations: 4 kB / 0.4933 GB, free: 12.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004535/0.4279, allocations: 2.487 MB / 0.4957 GB, free: 9.871 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.4279, allocations: 14.81 kB / 0.4957 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/0.428, allocations: 16 kB / 0.4958 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006868/0.4287, allocations: 235.6 kB / 0.496 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.4302, allocations: 419.3 kB / 0.4964 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003032/0.4332, allocations: 3.039 MB / 0.4993 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.4348, allocations: 135.9 kB / 0.4995 GB, free: 5.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.435, allocations: 71.94 kB / 0.4995 GB, free: 5.719 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.001487/0.4365, allocations: 0.815 MB / 0.5003 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004571/0.4369, allocations: 198.7 kB / 0.5005 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003708/0.4406, allocations: 2.039 MB / 0.5025 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4406, allocations: 12 kB / 0.5025 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.4407, allocations: 4 kB / 0.5025 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.4407, allocations: 11.97 kB / 0.5026 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008565/0.4492, allocations: 4.705 MB / 0.5071 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.4492, allocations: 4 kB / 0.5071 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.4504, allocations: 259.6 kB / 0.5074 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006513/0.451, allocations: 207.4 kB / 0.5076 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.655e-05/0.4511, allocations: 27.98 kB / 0.5076 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/0.4541, allocations: 3 MB / 0.5106 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.4541, allocations: 11.92 kB / 0.5106 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005126/0.4592, allocations: 3.144 MB / 0.5136 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.4603, allocations: 358.6 kB / 0.514 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.4606, allocations: 27.94 kB / 0.514 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009417/0.4615, allocations: 95.86 kB / 0.5141 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.4617, allocations: 84.91 kB / 0.5142 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-05/0.4618, allocations: 32 kB / 0.5142 GB, free: 6.277 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002073/0.4638, allocations: 1.228 MB / 0.5154 GB, free: 5.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4638, allocations: 0 / 0.5154 GB, free: 5.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001791/0.4656, allocations: 491.9 kB / 0.5159 GB, free: 4.578 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.005638/0.4713, allocations: 3.792 MB / 0.5196 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003823/0.4751, allocations: 2.113 MB / 0.5216 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.4751, allocations: 0 / 0.5216 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.477, allocations: 1.119 MB / 0.5227 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/0.4795, allocations: 0.4962 MB / 0.5232 GB, free: 12.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2388/0.7184, allocations: 18.8 MB / 0.5416 GB, free: 99.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.7201, allocations: 2.016 MB / 0.5435 GB, free: 98.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00131/0.7214, allocations: 0.5026 MB / 0.544 GB, free: 98.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.7224, allocations: 1.015 MB / 0.545 GB, free: 97.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/0.7224, allocations: 0 / 0.545 GB, free: 97.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08656/0.809, allocations: 47.65 MB / 0.5916 GB, free: 55.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.56, allocations: 10.88 kB / 0.5916 GB, free: 55.39 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.156462645623833] Failed to read output from testmodel.py, exit status != 0: ['time', 'smpm.is[1]', 'smpm.is[2]', 'inertiaLoad.w', 'multiSensor.flange_a.phi'] 14.672056762967259 14.687472433 14.336031066 Calling exit ...