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.001444/0.001444, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001429/0.001429, allocations: 193.4 kB / 18 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 1.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 51.92 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2619, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03654/0.2984, allocations: 30.35 MB / 430.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01847/0.317, allocations: 8.634 MB / 439.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005958/0.323, allocations: 183.5 kB / 439.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01334/0.3363, allocations: 4.917 MB / 444.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3471, allocations: 2.956 MB / 447.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005318/0.3524, allocations: 1.609 MB / 448.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01401/0.3665, allocations: 8.709 MB / 457.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01927/0.3858, allocations: 12.85 MB / 470.5 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007038/0.3929, allocations: 4.218 MB / 474.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008219/0.4011, allocations: 4.734 MB / 479.4 MB, free: 9.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003446/0.4046, allocations: 1.164 MB / 480.6 MB, free: 8.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005098/0.4097, allocations: 1.527 MB / 482.1 MB, free: 6.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004459/0.4142, allocations: 2.412 MB / 484.5 MB, free: 4.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009422/0.4237, allocations: 4.665 MB / 489.2 MB, free: 15.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.021/0.4447, allocations: 15.84 MB / 0.4932 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.647e-06/0.4448, allocations: 0 / 0.4932 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4448, allocations: 7.938 kB / 0.4932 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000425/0.4452, allocations: 0 / 0.4932 GB, free: 15.61 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.0293/0.4745, allocations: 9.929 MB / 0.5029 GB, free: 5.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4746, allocations: 12.03 kB / 0.5029 GB, free: 5.566 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003363/0.478, allocations: 1.152 MB / 0.504 GB, free: 4.402 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02925/0.5072, allocations: 5.306 MB / 0.5092 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/0.5189, allocations: 5.122 MB / 0.5142 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00058/0.5195, allocations: 0.5299 MB / 0.5147 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002683/0.5222, allocations: 0.7108 MB / 0.5154 GB, free: 8.641 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02873/0.5509, allocations: 11.33 MB / 0.5265 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002713/0.5512, allocations: 19.91 kB / 0.5265 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/0.553, allocations: 292 kB / 0.5268 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004838/0.5534, allocations: 455 kB / 0.5272 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/0.5766, allocations: 10.83 MB / 0.5378 GB, free: 1.641 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.252/0.8286, allocations: 37.68 MB / 0.5746 GB, free: 95.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/0.8431, allocations: 28.11 MB / 0.6021 GB, free: 66.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003784/0.8469, allocations: 2.663 MB / 0.6047 GB, free: 63.76 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01229/0.8593, allocations: 7.907 MB / 0.6124 GB, free: 55.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.8593, allocations: 60.34 kB / 0.6124 GB, free: 55.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.238e-06/0.8593, allocations: 0 / 0.6124 GB, free: 55.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01857/0.8779, allocations: 10.46 MB / 0.6226 GB, free: 45.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001579/0.8795, allocations: 2.009 MB / 0.6246 GB, free: 43.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005788/0.8853, allocations: 3.822 MB / 0.6283 GB, free: 39.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003477/0.8857, allocations: 69.7 kB / 0.6284 GB, free: 39.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001638/0.8874, allocations: 3.673 MB / 0.632 GB, free: 36.31 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000716/0.8881, allocations: 0.8705 MB / 0.6328 GB, free: 35.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001474/0.8896, allocations: 0.9575 MB / 0.6338 GB, free: 34.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.532e-05/0.8896, allocations: 305.6 kB / 0.6341 GB, free: 34.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.892, allocations: 1.895 MB / 0.6359 GB, free: 32.28 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00328/0.8953, allocations: 4.389 MB / 0.6402 GB, free: 26.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.9012, allocations: 6.791 MB / 0.6468 GB, free: 18.66 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.678e-05/0.9013, allocations: 24 kB / 0.6469 GB, free: 18.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01017/0.9115, allocations: 7.005 MB / 0.6537 GB, free: 11.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.169e-05/0.9116, allocations: 51.67 kB / 0.6538 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.9117, allocations: 88 kB / 0.6538 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.9136, allocations: 0.7354 MB / 0.6546 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/0.9169, allocations: 1.123 MB / 0.6557 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006136/0.923, allocations: 5.637 MB / 0.6612 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004028/0.9271, allocations: 315.4 kB / 0.6615 GB, free: 3.527 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007297/0.9278, allocations: 279.9 kB / 0.6617 GB, free: 3.254 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.00469/0.9325, allocations: 2.518 MB / 0.6642 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/0.9335, allocations: 405.4 kB / 0.6646 GB, free: 332 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008702/0.9423, allocations: 4.273 MB / 0.6687 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/0.9423, allocations: 24 kB / 0.6688 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/0.9423, allocations: 7.938 kB / 0.6688 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.148e-05/0.9424, allocations: 15.95 kB / 0.6688 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02924/0.9716, allocations: 14.28 MB / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.914e-05/0.9717, allocations: 16.03 kB / 0.6828 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002047/0.9738, allocations: 471.2 kB / 0.6832 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.9761, allocations: 0.698 MB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003514/0.9765, allocations: 71.97 kB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/0.9872, allocations: 7.496 MB / 0.6913 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002016/0.9893, allocations: 1.957 MB / 0.6932 GB, free: 2.363 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01122/1, allocations: 6.765 MB / 0.6998 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/1.003, allocations: 0.8067 MB / 0.7006 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006386/1.003, allocations: 71.98 kB / 0.7006 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/1.005, allocations: 163.8 kB / 0.7008 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/1.006, allocations: 221.3 kB / 0.701 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/1.006, allocations: 95.98 kB / 0.7011 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004353/1.01, allocations: 2.509 MB / 0.7036 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.01, allocations: 0 / 0.7036 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004975/1.015, allocations: 1.285 MB / 0.7048 GB, free: 6.18 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.01118/1.026, allocations: 7.451 MB / 0.7121 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008707/1.035, allocations: 5.168 MB / 0.7171 GB, free: 9.23 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.035, allocations: 4 kB / 0.7171 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004101/1.039, allocations: 2.409 MB / 0.7195 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004917/1.044, allocations: 0.9882 MB / 0.7205 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2782/1.322, allocations: 46.23 MB / 0.7656 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006093/1.329, allocations: 4.496 MB / 0.77 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004155/1.333, allocations: 1.361 MB / 0.7713 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003478/1.336, allocations: 2.538 MB / 0.7738 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/1.336, allocations: 0 / 0.7738 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.144/1.48, allocations: 103.9 MB / 0.8753 GB, free: 68.05 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.93/23.41, allocations: 7.922 kB / 0.8753 GB, free: 68.05 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