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_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 227.7 MB / 247.2 MB, free: 10.15 MB / 206.1 MB 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.0019/0.0019, allocations: 55.91 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2678, allocations: 50.56 MB / 409.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01434/0.2822, allocations: 11.44 MB / 420.5 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00746/0.2897, allocations: 3.586 MB / 424.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00213/0.2919, allocations: 71.69 kB / 424.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.2945, allocations: 0.8384 MB / 425 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003622/0.2982, allocations: 0.9279 MB / 426 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.2995, allocations: 447.4 kB / 426.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005478/0.305, allocations: 3.752 MB / 430.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00381/0.3088, allocations: 2.873 MB / 433 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003235/0.3121, allocations: 1.659 MB / 434.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003581/0.3157, allocations: 1.969 MB / 436.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.3167, allocations: 416 kB / 437.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.3182, allocations: 0.4998 MB / 437.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.3196, allocations: 1.208 MB / 438.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002792/0.3224, allocations: 1.925 MB / 440.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006959/0.3294, allocations: 5.574 MB / 446.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3294, allocations: 0 / 446.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3294, allocations: 0 / 446.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001522/0.3296, allocations: 4 kB / 446.3 MB, free: 11.95 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008368/0.3379, allocations: 3.911 MB / 450.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.338, allocations: 8.031 kB / 450.2 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005938/0.3386, allocations: 405 kB / 450.6 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/0.3397, allocations: 414.6 kB / 451 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003793/0.3435, allocations: 2.077 MB / 453.1 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.3437, allocations: 217.8 kB / 453.3 MB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004459/0.3442, allocations: 280 kB / 453.5 MB, free: 4.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006611/0.3508, allocations: 3.857 MB / 457.4 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.622e-05/0.3509, allocations: 7.953 kB / 457.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/0.3512, allocations: 120 kB / 457.5 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.3513, allocations: 125.5 kB / 457.6 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006131/0.3575, allocations: 3.258 MB / 460.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.3787, allocations: 11.81 MB / 472.7 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003707/0.3824, allocations: 3.658 MB / 476.4 MB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.3847, allocations: 1.242 MB / 477.6 MB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002952/0.385, allocations: 126.3 kB / 477.7 MB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.385, allocations: 47.88 kB / 477.8 MB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.196e-06/0.3851, allocations: 4 kB / 477.8 MB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01615/0.4012, allocations: 7.39 MB / 485.2 MB, free: 3.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.4013, allocations: 64.72 kB / 485.2 MB, free: 3.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003514/0.4048, allocations: 2.06 MB / 487.3 MB, free: 1.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.405, allocations: 53.7 kB / 487.4 MB, free: 1.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.4063, allocations: 1.413 MB / 488.8 MB, free: 136 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000566/0.4068, allocations: 0.5386 MB / 489.3 MB, free: 15.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005607/0.4074, allocations: 351.4 kB / 489.7 MB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4076, allocations: 301.1 kB / 489.9 MB, free: 14.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.409, allocations: 0.8705 MB / 490.8 MB, free: 14.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.4108, allocations: 1.361 MB / 492.2 MB, free: 12.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003278/0.4141, allocations: 2.33 MB / 494.5 MB, free: 9.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.4141, allocations: 7.75 kB / 494.5 MB, free: 9.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005936/0.4201, allocations: 3.282 MB / 497.8 MB, free: 6.613 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.4201, allocations: 15.94 kB / 497.8 MB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.4202, allocations: 16 kB / 497.8 MB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/0.4226, allocations: 0.8524 MB / 498.7 MB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.4239, allocations: 347.4 kB / 499 MB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02021/0.4441, allocations: 20.58 MB / 0.5074 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.4459, allocations: 99.94 kB / 0.5075 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.4461, allocations: 76 kB / 0.5076 GB, free: 15.06 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (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.001798/0.4479, allocations: 0.9318 MB / 0.5085 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004676/0.4484, allocations: 230.5 kB / 0.5087 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004603/0.453, allocations: 2.629 MB / 0.5113 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.4531, allocations: 19.98 kB / 0.5113 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.757e-05/0.4531, allocations: 8.109 kB / 0.5113 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4531, allocations: 7.922 kB / 0.5113 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.4631, allocations: 5.879 MB / 0.5171 GB, free: 5.109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/0.4632, allocations: 4 kB / 0.5171 GB, free: 5.105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/0.464, allocations: 195.7 kB / 0.5173 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.466, allocations: 0.7426 MB / 0.518 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4661, allocations: 43.92 kB / 0.518 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0174/0.4835, allocations: 18.15 MB / 0.5357 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4835, allocations: 4 kB / 0.5357 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2354/0.7189, allocations: 3.816 MB / 0.5395 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.7201, allocations: 491.1 kB / 0.5399 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006055/0.7208, allocations: 32.88 kB / 0.54 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.7221, allocations: 107.5 kB / 0.5401 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/0.7225, allocations: 147.1 kB / 0.5402 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.941e-05/0.7226, allocations: 44.55 kB / 0.5403 GB, free: 120.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001836/0.7245, allocations: 1.41 MB / 0.5416 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7245, allocations: 0 / 0.5416 GB, free: 120.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002443/0.7269, allocations: 0.6603 MB / 0.5423 GB, free: 120.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.005214/0.7322, allocations: 4.46 MB / 0.5466 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004278/0.7365, allocations: 3.464 MB / 0.55 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.7365, allocations: 0 / 0.55 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.7387, allocations: 2.204 MB / 0.5522 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003195/0.7419, allocations: 0.689 MB / 0.5528 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/0.7701, allocations: 22.63 MB / 0.5749 GB, free: 93.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.7716, allocations: 2.28 MB / 0.5772 GB, free: 91.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00136/0.773, allocations: 0.499 MB / 0.5777 GB, free: 90.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009988/0.774, allocations: 1.085 MB / 0.5787 GB, free: 89.72 MB / 462.1 MB Notification: Performance of SimCode: time 6.12e-07/0.774, allocations: 0 / 0.5787 GB, free: 89.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/0.8903, allocations: 59.82 MB / 0.6371 GB, free: 30.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.82, allocations: 10.58 kB / 0.6371 GB, free: 30.67 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1)