Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 65.42 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1024, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2178/0.3203, allocations: 41.81 MB / 399.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.3478, allocations: 11.21 MB / 410.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009407/0.3573, allocations: 313.2 kB / 410.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01987/0.3772, allocations: 8.77 MB / 419.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01253/0.3897, allocations: 3.561 MB / 423.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007776/0.3975, allocations: 2.453 MB / 425.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01742/0.415, allocations: 13.34 MB / 439.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03901/0.454, allocations: 25.71 MB / 464.8 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01045/0.4645, allocations: 6.946 MB / 471.7 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01222/0.4767, allocations: 8.031 MB / 479.8 MB, free: 1.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005127/0.4819, allocations: 1.992 MB / 481.7 MB, free: 15.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006979/0.4889, allocations: 2.421 MB / 484.2 MB, free: 13.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005638/0.4946, allocations: 4.033 MB / 488.2 MB, free: 9.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01252/0.5071, allocations: 7.781 MB / 496 MB, free: 1.629 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02754/0.5347, allocations: 26.32 MB / 0.5101 GB, free: 7.234 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.5347, allocations: 0 / 0.5101 GB, free: 7.234 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5348, allocations: 4 kB / 0.5101 GB, free: 7.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007045/0.5355, allocations: 0 / 0.5101 GB, free: 7.23 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04342/0.5789, allocations: 15.5 MB / 0.5252 GB, free: 7.617 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.579, allocations: 11.97 kB / 0.5252 GB, free: 7.605 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004914/0.5839, allocations: 1.752 MB / 0.5269 GB, free: 5.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3448/0.9287, allocations: 6.198 MB / 0.533 GB, free: 128.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/0.9457, allocations: 8.042 MB / 0.5408 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008558/0.9466, allocations: 0.9335 MB / 0.5417 GB, free: 124.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004342/0.9509, allocations: 1.23 MB / 0.5429 GB, free: 124.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04426/0.9952, allocations: 19.03 MB / 0.5615 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007359/0.996, allocations: 22.17 kB / 0.5615 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00417/1, allocations: 0.5058 MB / 0.562 GB, free: 116.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005264/1.001, allocations: 0.6547 MB / 0.5627 GB, free: 116.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03533/1.036, allocations: 17.03 MB / 0.5793 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0908/1.127, allocations: 61.35 MB / 0.6392 GB, free: 38.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/1.146, allocations: 33.5 MB / 0.6719 GB, free: 1.414 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006732/1.153, allocations: 3.84 MB / 0.6757 GB, free: 13.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0171/1.17, allocations: 9.094 MB / 0.6846 GB, free: 4.441 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.584e-05/1.17, allocations: 77.34 kB / 0.6846 GB, free: 4.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 6.211e-06/1.17, allocations: 3.938 kB / 0.6846 GB, free: 4.352 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.03607/1.206, allocations: 17.77 MB / 0.702 GB, free: 2.461 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/1.206, allocations: 90.58 kB / 0.7021 GB, free: 2.359 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007959/1.214, allocations: 5.255 MB / 0.7072 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006051/1.215, allocations: 89.7 kB / 0.7073 GB, free: 13.03 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003681/1.218, allocations: 5.629 MB / 0.7128 GB, free: 7.371 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001629/1.22, allocations: 1.4 MB / 0.7141 GB, free: 5.984 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002091/1.222, allocations: 1.35 MB / 0.7155 GB, free: 4.625 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.85e-05/1.222, allocations: 313.1 kB / 0.7158 GB, free: 4.316 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004428/1.227, allocations: 2.969 MB / 0.7187 GB, free: 1.344 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.168/1.395, allocations: 6 MB / 0.7245 GB, free: 155.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/1.406, allocations: 9.67 MB / 0.734 GB, free: 149 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002383/1.406, allocations: 29.53 kB / 0.734 GB, free: 149 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02028/1.426, allocations: 10.09 MB / 0.7438 GB, free: 145.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/1.426, allocations: 49.14 kB / 0.7439 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002109/1.427, allocations: 106.2 kB / 0.744 GB, free: 145.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/1.429, allocations: 0.9495 MB / 0.7449 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005764/1.435, allocations: 1.623 MB / 0.7465 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.445, allocations: 10.21 MB / 0.7565 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005315/1.45, allocations: 427.5 kB / 0.7569 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/1.451, allocations: 361.3 kB / 0.7572 GB, free: 137.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008017/1.46, allocations: 4.302 MB / 0.7614 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.461, allocations: 0.5432 MB / 0.762 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.471, allocations: 6.666 MB / 0.7685 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/1.471, allocations: 45 kB / 0.7685 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/1.471, allocations: 13.03 kB / 0.7685 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-05/1.471, allocations: 23.02 kB / 0.7685 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/1.494, allocations: 16.26 MB / 0.7844 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/1.494, allocations: 7.688 kB / 0.7844 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003075/1.497, allocations: 0.7783 MB / 0.7852 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001967/1.499, allocations: 0.7983 MB / 0.786 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002542/1.499, allocations: 87.73 kB / 0.7861 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008302/1.508, allocations: 9.346 MB / 0.7952 GB, free: 112.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.508, allocations: 4 kB / 0.7952 GB, free: 112.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.521, allocations: 9.792 MB / 0.8047 GB, free: 102.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003122/1.524, allocations: 1.098 MB / 0.8058 GB, free: 101.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009196/1.525, allocations: 80 kB / 0.8059 GB, free: 101.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002571/1.527, allocations: 234.4 kB / 0.8061 GB, free: 101.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005399/1.528, allocations: 270.8 kB / 0.8064 GB, free: 100.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002267/1.528, allocations: 120 kB / 0.8065 GB, free: 100.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004629/1.533, allocations: 3.506 MB / 0.8099 GB, free: 97.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.533, allocations: 0 / 0.8099 GB, free: 97.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006773/1.54, allocations: 1.948 MB / 0.8118 GB, free: 95.32 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,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.01298/1.553, allocations: 10.52 MB / 0.8221 GB, free: 84.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02799/1.581, allocations: 13.47 MB / 0.8352 GB, free: 71.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/1.581, allocations: 8.188 kB / 0.8353 GB, free: 71.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005044/1.586, allocations: 3.634 MB / 0.8388 GB, free: 67.46 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007438/1.593, allocations: 1.411 MB / 0.8402 GB, free: 66.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2764/1.87, allocations: 84.58 MB / 0.9228 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008981/1.879, allocations: 7.43 MB / 0.93 GB, free: 133.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006011/1.885, allocations: 2.191 MB / 0.9322 GB, free: 133.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004979/1.89, allocations: 4.512 MB / 0.9366 GB, free: 129.2 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/1.89, allocations: 3.438 kB / 0.9366 GB, free: 129.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4256/2.315, allocations: 156.1 MB / 1.089 GB, free: 134.4 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/14.89, allocations: 10.3 kB / 1.089 GB, free: 134.4 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --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_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches