Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001495, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2723, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02932/0.3017, allocations: 30.98 MB / 439.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.3196, allocations: 8.884 MB / 448.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006081/0.3258, allocations: 191.4 kB / 448.8 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01193/0.3378, allocations: 4.983 MB / 453.8 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009385/0.3472, allocations: 3.05 MB / 456.9 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.3522, allocations: 1.621 MB / 458.5 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01219/0.3644, allocations: 8.811 MB / 467.3 MB, free: 6.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02076/0.3853, allocations: 12.86 MB / 480.2 MB, free: 9.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007544/0.3929, allocations: 4.238 MB / 484.4 MB, free: 5.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008692/0.4016, allocations: 4.835 MB / 489.2 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004185/0.4058, allocations: 1.164 MB / 490.4 MB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005962/0.4118, allocations: 1.542 MB / 491.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004694/0.4166, allocations: 2.408 MB / 494.4 MB, free: 11.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009999/0.4266, allocations: 4.68 MB / 499 MB, free: 6.918 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02165/0.4483, allocations: 15.88 MB / 0.5028 GB, free: 6.988 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4483, allocations: 0 / 0.5028 GB, free: 6.988 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4483, allocations: 4 kB / 0.5028 GB, free: 6.984 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004608/0.4488, allocations: 0 / 0.5028 GB, free: 6.984 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03064/0.4795, allocations: 9.977 MB / 0.5126 GB, free: 12.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4795, allocations: 19.97 kB / 0.5126 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004489/0.484, allocations: 1.141 MB / 0.5137 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02986/0.5139, allocations: 5.31 MB / 0.5189 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01279/0.5267, allocations: 5.134 MB / 0.5239 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005786/0.5274, allocations: 0.5338 MB / 0.5244 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002879/0.5302, allocations: 0.707 MB / 0.5251 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02939/0.5597, allocations: 11.33 MB / 0.5362 GB, free: 4.539 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005135/0.5602, allocations: 19.88 kB / 0.5362 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003077/0.5633, allocations: 300 kB / 0.5365 GB, free: 4.227 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000546/0.5639, allocations: 443 kB / 0.5369 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2399/0.8038, allocations: 10.84 MB / 0.5475 GB, free: 112.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05364/0.8574, allocations: 38.58 MB / 0.5852 GB, free: 82.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0135/0.871, allocations: 28.3 MB / 0.6128 GB, free: 50.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003769/0.8748, allocations: 2.686 MB / 0.6154 GB, free: 47.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01208/0.8869, allocations: 8.424 MB / 0.6237 GB, free: 39.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.887, allocations: 63.84 kB / 0.6237 GB, free: 39.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.987e-06/0.887, allocations: 0 / 0.6237 GB, free: 39.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01713/0.9041, allocations: 10.46 MB / 0.6339 GB, free: 29.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001563/0.9057, allocations: 2.014 MB / 0.6359 GB, free: 26.88 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004582/0.9103, allocations: 3.839 MB / 0.6397 GB, free: 23.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003054/0.9107, allocations: 65.7 kB / 0.6397 GB, free: 23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.9122, allocations: 3.687 MB / 0.6433 GB, free: 19.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005772/0.9128, allocations: 0.8665 MB / 0.6442 GB, free: 18.51 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/0.9139, allocations: 0.9575 MB / 0.6451 GB, free: 17.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.9139, allocations: 309.8 kB / 0.6454 GB, free: 17.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/0.9161, allocations: 1.895 MB / 0.6472 GB, free: 15.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/0.9191, allocations: 4.391 MB / 0.6515 GB, free: 9.711 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005672/0.9248, allocations: 6.785 MB / 0.6582 GB, free: 1.719 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.385e-05/0.9249, allocations: 28 kB / 0.6582 GB, free: 1.691 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01067/0.9356, allocations: 7.013 MB / 0.665 GB, free: 10.66 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.388e-05/0.9356, allocations: 42.66 kB / 0.6651 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/0.9358, allocations: 88 kB / 0.6652 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.9378, allocations: 0.7451 MB / 0.6659 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.9414, allocations: 1.119 MB / 0.667 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007072/0.9484, allocations: 5.633 MB / 0.6725 GB, free: 2.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004412/0.9529, allocations: 323.4 kB / 0.6728 GB, free: 2.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008166/0.9537, allocations: 272 kB / 0.673 GB, free: 2.305 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005141/0.9589, allocations: 2.518 MB / 0.6755 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/0.9601, allocations: 413.4 kB / 0.6759 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008088/0.9682, allocations: 4.263 MB / 0.6801 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.9682, allocations: 31.94 kB / 0.6801 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.9682, allocations: 7.984 kB / 0.6801 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/0.9683, allocations: 11.95 kB / 0.6801 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02764/0.9959, allocations: 14.3 MB / 0.6941 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/0.996, allocations: 12 kB / 0.6941 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/0.9979, allocations: 483.2 kB / 0.6946 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.9999, allocations: 0.6898 MB / 0.6952 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002265/1, allocations: 71.97 kB / 0.6953 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009007/1.009, allocations: 7.499 MB / 0.7026 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001723/1.011, allocations: 1.957 MB / 0.7045 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/1.022, allocations: 6.758 MB / 0.7111 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/1.024, allocations: 0.8264 MB / 0.7119 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.025, allocations: 60 kB / 0.712 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002403/1.027, allocations: 163.8 kB / 0.7121 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004858/1.028, allocations: 225.4 kB / 0.7124 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/1.028, allocations: 87.98 kB / 0.7124 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00481/1.033, allocations: 2.526 MB / 0.7149 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/1.033, allocations: 0 / 0.7149 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005891/1.039, allocations: 1.293 MB / 0.7162 GB, free: 5.137 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01131/1.05, allocations: 7.454 MB / 0.7235 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0087/1.059, allocations: 5.164 MB / 0.7285 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.58e-05/1.059, allocations: 1.625 kB / 0.7285 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00423/1.063, allocations: 2.412 MB / 0.7309 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007024/1.07, allocations: 1.013 MB / 0.7318 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3141/1.384, allocations: 46.25 MB / 0.777 GB, free: 185.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003538/1.388, allocations: 4.503 MB / 0.7814 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003327/1.391, allocations: 1.364 MB / 0.7827 GB, free: 182.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002766/1.394, allocations: 2.55 MB / 0.7852 GB, free: 179.8 MB / 0.545 GB Notification: Performance of SimCode: time 7.31e-07/1.394, allocations: 0 / 0.7852 GB, free: 179.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1434/1.538, allocations: 104 MB / 0.8868 GB, free: 76.49 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.89/22.43, allocations: 12.83 kB / 0.8868 GB, free: 76.48 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches