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.001677/0.001677, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002146/0.002146, allocations: 199.5 kB / 18.79 MB, free: 4.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 230.2 MB / 249.8 MB, free: 9.324 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002406/0.002406, allocations: 67.88 kB / 366.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2666, allocations: 53.31 MB / 420 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05095/0.3175, allocations: 41.98 MB / 461.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02803/0.3456, allocations: 11.24 MB / 473.2 MB, free: 2.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008415/0.354, allocations: 318.9 kB / 473.5 MB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02227/0.3762, allocations: 8.894 MB / 482.4 MB, free: 9.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01368/0.3899, allocations: 3.666 MB / 486.1 MB, free: 6.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008914/0.3988, allocations: 2.468 MB / 488.5 MB, free: 3.578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02106/0.4199, allocations: 13.44 MB / 0.4902 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04341/0.4633, allocations: 19.87 MB / 0.5096 GB, free: 2.078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01424/0.4775, allocations: 7.016 MB / 0.5165 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01683/0.4944, allocations: 8.109 MB / 0.5244 GB, free: 2.906 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005952/0.5003, allocations: 1.992 MB / 0.5263 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007953/0.5083, allocations: 2.414 MB / 0.5287 GB, free: 14.5 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007159/0.5154, allocations: 4.06 MB / 0.5326 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01495/0.5304, allocations: 7.766 MB / 0.5402 GB, free: 2.629 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4974/1.028, allocations: 26.54 MB / 0.5662 GB, free: 35.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/1.028, allocations: 0 / 0.5662 GB, free: 35.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.824e-06/1.028, allocations: 0 / 0.5662 GB, free: 35.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008767/1.029, allocations: 0 / 0.5662 GB, free: 35.98 MB / 462.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.05608/1.085, allocations: 15.78 MB / 0.5816 GB, free: 28.94 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/1.085, allocations: 10.5 kB / 0.5816 GB, free: 28.94 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0076/1.092, allocations: 1.748 MB / 0.5833 GB, free: 28.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03398/1.126, allocations: 6.202 MB / 0.5893 GB, free: 26.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01886/1.145, allocations: 8.327 MB / 0.5975 GB, free: 21.34 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008299/1.146, allocations: 0.9294 MB / 0.5984 GB, free: 20.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006116/1.152, allocations: 1.226 MB / 0.5996 GB, free: 20.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05169/1.204, allocations: 19.06 MB / 0.6182 GB, free: 2.867 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006735/1.205, allocations: 23.28 kB / 0.6182 GB, free: 2.848 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005089/1.21, allocations: 0.5017 MB / 0.6187 GB, free: 2.355 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005516/1.21, allocations: 0.6621 MB / 0.6193 GB, free: 1.691 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04529/1.256, allocations: 17.07 MB / 0.636 GB, free: 0.625 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1323/1.388, allocations: 60.84 MB / 0.6954 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03263/1.42, allocations: 33.08 MB / 0.7277 GB, free: 14.35 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007451/1.428, allocations: 3.491 MB / 0.7311 GB, free: 10.85 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02299/1.451, allocations: 9.124 MB / 0.74 GB, free: 1.75 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.684e-05/1.451, allocations: 69.41 kB / 0.7401 GB, free: 1.672 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=361): time 6.181e-06/1.451, allocations: 0 / 0.7401 GB, free: 1.672 MB / 0.5763 GB Notification: Performance of matching and sorting (n=403): time 0.304/1.755, allocations: 17.94 MB / 0.7576 GB, free: 222.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.755, allocations: 97.48 kB / 0.7577 GB, free: 222.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/1.766, allocations: 5.261 MB / 0.7629 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001085/1.767, allocations: 92.42 kB / 0.763 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.003639/1.771, allocations: 5.82 MB / 0.7686 GB, free: 220.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001656/1.773, allocations: 1.477 MB / 0.7701 GB, free: 219 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/1.775, allocations: 1.365 MB / 0.7714 GB, free: 218.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.352e-05/1.775, allocations: 304.2 kB / 0.7717 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004266/1.779, allocations: 2.97 MB / 0.7746 GB, free: 216.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005872/1.785, allocations: 6.015 MB / 0.7805 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009965/1.795, allocations: 9.684 MB / 0.7899 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.481e-05/1.795, allocations: 27.47 kB / 0.79 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01629/1.811, allocations: 10.11 MB / 0.7998 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.364e-05/1.812, allocations: 50.41 kB / 0.7999 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/1.812, allocations: 101.6 kB / 0.8 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/1.814, allocations: 0.9397 MB / 0.8009 GB, free: 200.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005757/1.82, allocations: 1.637 MB / 0.8025 GB, free: 200 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/1.83, allocations: 10.22 MB / 0.8125 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006318/1.836, allocations: 420 kB / 0.8129 GB, free: 190 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/1.838, allocations: 363.3 kB / 0.8132 GB, free: 189.7 MB / 0.5919 GB 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.008885/1.846, allocations: 4.307 MB / 0.8174 GB, free: 186 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/1.848, allocations: 0.5625 MB / 0.818 GB, free: 185.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.859, allocations: 6.647 MB / 0.8245 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/1.859, allocations: 40 kB / 0.8245 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/1.859, allocations: 12 kB / 0.8245 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-05/1.859, allocations: 23.2 kB / 0.8245 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03117/1.89, allocations: 16.24 MB / 0.8404 GB, free: 164.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/1.89, allocations: 4 kB / 0.8404 GB, free: 164.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003144/1.893, allocations: 0.7801 MB / 0.8412 GB, free: 164.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002049/1.895, allocations: 0.7919 MB / 0.8419 GB, free: 163.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003697/1.896, allocations: 95.97 kB / 0.842 GB, free: 163.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008415/1.904, allocations: 9.339 MB / 0.8512 GB, free: 153.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.904, allocations: 7.938 kB / 0.8512 GB, free: 153.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.917, allocations: 9.828 MB / 0.8608 GB, free: 143.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00306/1.92, allocations: 1.134 MB / 0.8619 GB, free: 142.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/1.921, allocations: 80 kB / 0.8619 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/1.924, allocations: 219.8 kB / 0.8622 GB, free: 142 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005686/1.924, allocations: 282.8 kB / 0.8624 GB, free: 141.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/1.925, allocations: 124 kB / 0.8625 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00546/1.93, allocations: 3.506 MB / 0.866 GB, free: 138.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.81e-07/1.93, allocations: 3.938 kB / 0.866 GB, free: 138.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008401/1.939, allocations: 1.941 MB / 0.8679 GB, free: 136.2 MB / 0.5919 GB 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.01397/1.953, allocations: 10.55 MB / 0.8782 GB, free: 125.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.964, allocations: 7.532 MB / 0.8855 GB, free: 117.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.964, allocations: 4 kB / 0.8855 GB, free: 117.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005577/1.97, allocations: 3.398 MB / 0.8888 GB, free: 114.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008578/1.979, allocations: 1.411 MB / 0.8902 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/2.095, allocations: 67.52 MB / 0.9562 GB, free: 41.57 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01189/2.107, allocations: 7.432 MB / 0.9634 GB, free: 34.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006337/2.113, allocations: 2.198 MB / 0.9656 GB, free: 31.89 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007158/2.12, allocations: 4.518 MB / 0.97 GB, free: 27.37 MB / 0.5919 GB Notification: Performance of SimCode: time 2.114e-06/2.12, allocations: 0 / 0.97 GB, free: 27.37 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5028/2.623, allocations: 155.9 MB / 1.122 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.87/25.49, allocations: 17.19 kB / 1.122 GB, free: 100.1 MB / 0.5919 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.1.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