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.001597/0.001598, allocations: 110.1 kB / 16.92 MB, free: 5.766 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.001944/0.001944, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.481/2.481, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002092, allocations: 42.64 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1853, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.3826/0.568, allocations: 30.33 MB / 380.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03658/0.6046, allocations: 8.657 MB / 389.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01073/0.6154, allocations: 183.4 kB / 389.4 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01671/0.6322, allocations: 4.906 MB / 394.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01484/0.6471, allocations: 2.971 MB / 397.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006365/0.6534, allocations: 1.599 MB / 398.8 MB, free: 396 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01959/0.673, allocations: 8.655 MB / 407.5 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03571/0.7088, allocations: 12.89 MB / 420.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0135/0.7224, allocations: 4.207 MB / 424.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01267/0.7351, allocations: 4.749 MB / 429.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004866/0.74, allocations: 1.168 MB / 430.5 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009006/0.7491, allocations: 1.535 MB / 432 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007147/0.7563, allocations: 2.415 MB / 434.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01884/0.7752, allocations: 4.669 MB / 439.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0435/0.8187, allocations: 15.72 MB / 454.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.808e-05/0.8188, allocations: 4 kB / 454.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.8189, allocations: 0 / 454.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007228/0.8196, allocations: 0 / 454.8 MB, free: 13.22 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.04471/0.8643, allocations: 9.771 MB / 464.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.8644, allocations: 8.031 kB / 464.6 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007449/0.8719, allocations: 1.149 MB / 465.8 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03796/0.9099, allocations: 5.259 MB / 471 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01477/0.9247, allocations: 4.976 MB / 476 MB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008918/0.9256, allocations: 0.5455 MB / 476.6 MB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004832/0.9305, allocations: 0.703 MB / 477.3 MB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04517/0.9757, allocations: 11.33 MB / 488.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006909/0.9765, allocations: 23.73 kB / 488.6 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004655/0.9812, allocations: 300 kB / 488.9 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006756/0.9819, allocations: 443 kB / 489.3 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04134/1.023, allocations: 10.83 MB / 0.4884 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5454/1.569, allocations: 37.99 MB / 0.5255 GB, free: 108.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02997/1.599, allocations: 28.1 MB / 0.553 GB, free: 83.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007155/1.606, allocations: 2.645 MB / 0.5556 GB, free: 83.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02244/1.628, allocations: 7.929 MB / 0.5633 GB, free: 80.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.765e-05/1.629, allocations: 63.72 kB / 0.5634 GB, free: 80.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 6.862e-06/1.629, allocations: 0 / 0.5634 GB, free: 80.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02624/1.655, allocations: 10.36 MB / 0.5735 GB, free: 76.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002444/1.657, allocations: 1.999 MB / 0.5754 GB, free: 74.37 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009783/1.667, allocations: 3.819 MB / 0.5792 GB, free: 72.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006023/1.668, allocations: 65.11 kB / 0.5792 GB, free: 72.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003157/1.671, allocations: 3.557 MB / 0.5827 GB, free: 70.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/1.672, allocations: 0.8283 MB / 0.5835 GB, free: 69.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002775/1.675, allocations: 0.9584 MB / 0.5845 GB, free: 69.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.797e-05/1.675, allocations: 305.1 kB / 0.5847 GB, free: 68.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003049/1.678, allocations: 1.893 MB / 0.5866 GB, free: 67.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004962/1.683, allocations: 4.394 MB / 0.5909 GB, free: 63.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/1.695, allocations: 6.781 MB / 0.5975 GB, free: 57.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/1.695, allocations: 27 kB / 0.5975 GB, free: 57.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01945/1.715, allocations: 6.989 MB / 0.6044 GB, free: 52.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.51e-05/1.715, allocations: 43.98 kB / 0.6044 GB, free: 52.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/1.715, allocations: 91.98 kB / 0.6045 GB, free: 52.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002618/1.718, allocations: 0.7365 MB / 0.6052 GB, free: 52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00668/1.724, allocations: 1.119 MB / 0.6063 GB, free: 50.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01187/1.736, allocations: 5.644 MB / 0.6118 GB, free: 45.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009076/1.745, allocations: 311 kB / 0.6121 GB, free: 44.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001506/1.747, allocations: 277.1 kB / 0.6124 GB, free: 44.52 MB / 430.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.009788/1.757, allocations: 2.522 MB / 0.6148 GB, free: 41.99 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00216/1.759, allocations: 383.3 kB / 0.6152 GB, free: 41.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/1.774, allocations: 4.278 MB / 0.6194 GB, free: 37.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.673e-05/1.774, allocations: 27.94 kB / 0.6194 GB, free: 37.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.239e-05/1.774, allocations: 8 kB / 0.6194 GB, free: 37.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-05/1.774, allocations: 11.95 kB / 0.6194 GB, free: 37.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04463/1.819, allocations: 14.29 MB / 0.6334 GB, free: 22.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-05/1.819, allocations: 8 kB / 0.6334 GB, free: 22.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/1.822, allocations: 479.2 kB / 0.6338 GB, free: 22.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003956/1.826, allocations: 0.6936 MB / 0.6345 GB, free: 21.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004554/1.827, allocations: 71.98 kB / 0.6346 GB, free: 21.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01553/1.842, allocations: 7.5 MB / 0.6419 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002609/1.845, allocations: 1.945 MB / 0.6438 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.863, allocations: 6.737 MB / 0.6504 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004387/1.867, allocations: 0.7968 MB / 0.6512 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00252/1.87, allocations: 59.98 kB / 0.6512 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005126/1.875, allocations: 163.9 kB / 0.6514 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001108/1.876, allocations: 221.5 kB / 0.6516 GB, free: 3.387 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004964/1.877, allocations: 87.98 kB / 0.6517 GB, free: 3.301 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01054/1.888, allocations: 2.513 MB / 0.6541 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.21e-07/1.888, allocations: 0 / 0.6541 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01274/1.9, allocations: 1.292 MB / 0.6554 GB, free: 15.52 MB / 446.1 MB 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.02182/1.922, allocations: 7.428 MB / 0.6626 GB, free: 7.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02732/1.95, allocations: 7.01 MB / 0.6695 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.416e-05/1.95, allocations: 0 / 0.6695 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007817/1.957, allocations: 2.411 MB / 0.6718 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01137/1.969, allocations: 0.9858 MB / 0.6728 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4645/2.433, allocations: 55.43 MB / 0.7269 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/2.444, allocations: 4.502 MB / 0.7313 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0097/2.454, allocations: 1.355 MB / 0.7327 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007868/2.462, allocations: 2.539 MB / 0.7351 GB, free: 114.4 MB / 462.1 MB Notification: Performance of SimCode: time 2.775e-06/2.462, allocations: 0 / 0.7351 GB, free: 114.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2512/2.713, allocations: 106.3 MB / 0.839 GB, free: 10.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.46/25.17, allocations: 0.875 kB / 0.839 GB, free: 10.87 MB / 462.1 MB (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