Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 109 kB / 17.06 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001458, allocations: 200 kB / 18 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 43.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2508, allocations: 49.43 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02877/0.2796, allocations: 30.35 MB / 430.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.2972, allocations: 8.638 MB / 439.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006547/0.3038, allocations: 187.4 kB / 439.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01299/0.3168, allocations: 4.975 MB / 444.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.328, allocations: 3.046 MB / 447.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005368/0.3334, allocations: 1.61 MB / 449.1 MB, free: 7.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.3461, allocations: 8.713 MB / 457.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02163/0.3677, allocations: 12.86 MB / 470.6 MB, free: 2.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008047/0.3758, allocations: 4.23 MB / 474.9 MB, free: 13.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008085/0.384, allocations: 4.741 MB / 479.6 MB, free: 9.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003532/0.3875, allocations: 1.164 MB / 480.8 MB, free: 7.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005581/0.3931, allocations: 1.523 MB / 482.3 MB, free: 6.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00433/0.3975, allocations: 2.404 MB / 484.7 MB, free: 4.031 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01039/0.4079, allocations: 4.677 MB / 489.4 MB, free: 15.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02075/0.4287, allocations: 15.84 MB / 0.4934 GB, free: 15.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4288, allocations: 0 / 0.4934 GB, free: 15.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4288, allocations: 0 / 0.4934 GB, free: 15.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004716/0.4293, allocations: 0 / 0.4934 GB, free: 15.45 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.02957/0.4588, allocations: 9.936 MB / 0.5031 GB, free: 5.402 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.4589, allocations: 8.031 kB / 0.5031 GB, free: 5.395 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003872/0.4628, allocations: 1.148 MB / 0.5042 GB, free: 4.234 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02943/0.4922, allocations: 5.314 MB / 0.5094 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/0.5048, allocations: 5.118 MB / 0.5144 GB, free: 9.711 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000668/0.5056, allocations: 0.5299 MB / 0.5149 GB, free: 9.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002951/0.5085, allocations: 0.7069 MB / 0.5156 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02832/0.5369, allocations: 11.32 MB / 0.5266 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002446/0.5371, allocations: 23.89 kB / 0.5267 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00149/0.5386, allocations: 300 kB / 0.527 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004353/0.5391, allocations: 455 kB / 0.5274 GB, free: 12.31 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02217/0.5613, allocations: 10.84 MB / 0.538 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2655/0.8269, allocations: 37.68 MB / 0.5748 GB, free: 95.11 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01381/0.8407, allocations: 28.11 MB / 0.6022 GB, free: 66.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003691/0.8445, allocations: 2.655 MB / 0.6048 GB, free: 63.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/0.8568, allocations: 7.922 MB / 0.6125 GB, free: 55.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.8569, allocations: 59.84 kB / 0.6126 GB, free: 55.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.328e-06/0.8569, allocations: 0 / 0.6126 GB, free: 55.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01811/0.875, allocations: 10.45 MB / 0.6228 GB, free: 45.47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001619/0.8767, allocations: 2.005 MB / 0.6248 GB, free: 43.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/0.8819, allocations: 3.827 MB / 0.6285 GB, free: 39.55 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004329/0.8824, allocations: 65.69 kB / 0.6286 GB, free: 39.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/0.8844, allocations: 3.677 MB / 0.6322 GB, free: 36.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008882/0.8853, allocations: 0.8671 MB / 0.633 GB, free: 35.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/0.8865, allocations: 0.9614 MB / 0.6339 GB, free: 34.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.8865, allocations: 305.1 kB / 0.6342 GB, free: 34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.8888, allocations: 1.895 MB / 0.6361 GB, free: 32.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.8921, allocations: 4.389 MB / 0.6404 GB, free: 26.47 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006046/0.8982, allocations: 6.795 MB / 0.647 GB, free: 18.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.809e-05/0.8983, allocations: 24 kB / 0.647 GB, free: 18.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0111/0.9094, allocations: 6.997 MB / 0.6539 GB, free: 11.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.905e-05/0.9095, allocations: 52.09 kB / 0.6539 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.9097, allocations: 92 kB / 0.654 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/0.9115, allocations: 0.7386 MB / 0.6547 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/0.915, allocations: 1.115 MB / 0.6558 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005916/0.921, allocations: 5.645 MB / 0.6613 GB, free: 3.641 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/0.9249, allocations: 311.4 kB / 0.6616 GB, free: 3.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006371/0.9256, allocations: 271.9 kB / 0.6619 GB, free: 3.07 MB / 462.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.003688/0.9293, allocations: 2.526 MB / 0.6643 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000893/0.9302, allocations: 405.4 kB / 0.6647 GB, free: 136 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007596/0.9378, allocations: 4.275 MB / 0.6689 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/0.9379, allocations: 24 kB / 0.6689 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.9379, allocations: 19.94 kB / 0.6689 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.804e-05/0.9379, allocations: 15.94 kB / 0.669 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02518/0.9631, allocations: 14.28 MB / 0.6829 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/0.9632, allocations: 12 kB / 0.6829 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/0.9651, allocations: 483.2 kB / 0.6834 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/0.9671, allocations: 0.682 MB / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002481/0.9674, allocations: 67.98 kB / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009335/0.9767, allocations: 7.511 MB / 0.6914 GB, free: 4.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001852/0.9786, allocations: 1.947 MB / 0.6933 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.9891, allocations: 6.765 MB / 0.6999 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002174/0.9913, allocations: 0.8185 MB / 0.7007 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007092/0.992, allocations: 59.94 kB / 0.7008 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/0.994, allocations: 167.9 kB / 0.701 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/0.9945, allocations: 221.3 kB / 0.7012 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/0.9947, allocations: 91.98 kB / 0.7013 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004175/0.9989, allocations: 2.509 MB / 0.7037 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.11e-07/0.9989, allocations: 0 / 0.7037 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005221/1.004, allocations: 1.285 MB / 0.705 GB, free: 5.988 MB / 0.4981 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.0109/1.015, allocations: 7.457 MB / 0.7123 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008792/1.024, allocations: 5.173 MB / 0.7173 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/1.024, allocations: 4.125 kB / 0.7173 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004201/1.028, allocations: 2.416 MB / 0.7197 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005748/1.034, allocations: 0.9774 MB / 0.7206 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2964/1.33, allocations: 46.22 MB / 0.7658 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005071/1.336, allocations: 4.489 MB / 0.7701 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003801/1.339, allocations: 1.363 MB / 0.7715 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003467/1.343, allocations: 2.538 MB / 0.774 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of SimCode: time 7.61e-07/1.343, allocations: 0 / 0.774 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1857/1.529, allocations: 103.9 MB / 0.8754 GB, free: 67.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.34/21.87, allocations: 4.859 kB / 0.8754 GB, free: 67.74 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches