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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 103.1 kB / 17.06 MB, free: 6.129 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.002039/0.002039, allocations: 195 kB / 18 MB, free: 5.203 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 51.92 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3145, allocations: 49.44 MB / 400.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04192/0.3565, allocations: 41.17 MB / 441.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.3773, allocations: 10.96 MB / 452.4 MB, free: 4.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008082/0.3854, allocations: 311 kB / 452.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02286/0.4084, allocations: 8.76 MB / 461.5 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01545/0.4239, allocations: 3.565 MB / 465 MB, free: 7.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00712/0.431, allocations: 2.398 MB / 467.4 MB, free: 5.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01661/0.4476, allocations: 13.34 MB / 480.8 MB, free: 8.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04372/0.4914, allocations: 25.62 MB / 0.4945 GB, free: 14.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01261/0.5041, allocations: 6.989 MB / 0.5013 GB, free: 7.242 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01148/0.5156, allocations: 7.918 MB / 0.5091 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004863/0.5205, allocations: 1.992 MB / 0.511 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006294/0.5268, allocations: 2.378 MB / 0.5133 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005952/0.5328, allocations: 4.041 MB / 0.5173 GB, free: 6.875 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01476/0.5476, allocations: 7.766 MB / 0.5249 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4998/1.047, allocations: 26.45 MB / 0.5507 GB, free: 57.32 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-05/1.048, allocations: 1 kB / 0.5507 GB, free: 57.32 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.715e-06/1.048, allocations: 0 / 0.5507 GB, free: 57.32 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001288/1.049, allocations: 5.594 kB / 0.5507 GB, free: 57.32 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.05316/1.102, allocations: 15.43 MB / 0.5658 GB, free: 51.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.102, allocations: 10.19 kB / 0.5658 GB, free: 51.91 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007285/1.109, allocations: 1.751 MB / 0.5675 GB, free: 51.47 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03414/1.144, allocations: 6.228 MB / 0.5736 GB, free: 49.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01871/1.162, allocations: 8.261 MB / 0.5816 GB, free: 45.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008616/1.163, allocations: 0.9307 MB / 0.5826 GB, free: 45.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007428/1.171, allocations: 1.226 MB / 0.5838 GB, free: 44.69 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0428/1.213, allocations: 19.01 MB / 0.6023 GB, free: 27.49 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003671/1.214, allocations: 27.36 kB / 0.6023 GB, free: 27.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002693/1.217, allocations: 0.5056 MB / 0.6028 GB, free: 26.97 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004636/1.217, allocations: 0.6582 MB / 0.6035 GB, free: 26.31 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0344/1.251, allocations: 17.03 MB / 0.6201 GB, free: 9.273 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09764/1.349, allocations: 59.79 MB / 0.6785 GB, free: 13.05 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02471/1.374, allocations: 33.16 MB / 0.7109 GB, free: 8.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00614/1.38, allocations: 3.794 MB / 0.7146 GB, free: 4.215 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01753/1.398, allocations: 8.863 MB / 0.7233 GB, free: 11.41 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/1.398, allocations: 71.7 kB / 0.7233 GB, free: 11.34 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 4.799e-06/1.398, allocations: 4 kB / 0.7233 GB, free: 11.33 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.03543/1.433, allocations: 17.76 MB / 0.7407 GB, free: 9.504 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/1.433, allocations: 94.58 kB / 0.7408 GB, free: 9.398 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00841/1.442, allocations: 5.244 MB / 0.7459 GB, free: 4.172 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007351/1.442, allocations: 89.7 kB / 0.746 GB, free: 4.078 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2041/1.647, allocations: 5.609 MB / 0.7514 GB, free: 224.1 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001372/1.648, allocations: 1.398 MB / 0.7528 GB, free: 223.5 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001947/1.65, allocations: 1.355 MB / 0.7541 GB, free: 223.4 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.479e-05/1.65, allocations: 304.9 kB / 0.7544 GB, free: 223.1 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003613/1.654, allocations: 2.977 MB / 0.7573 GB, free: 223.1 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004437/1.658, allocations: 6.009 MB / 0.7632 GB, free: 218.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009/1.667, allocations: 9.667 MB / 0.7726 GB, free: 211.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/1.667, allocations: 26.78 kB / 0.7727 GB, free: 211.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01706/1.684, allocations: 10.09 MB / 0.7825 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.96e-05/1.684, allocations: 50.56 kB / 0.7826 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.685, allocations: 107.2 kB / 0.7827 GB, free: 207.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002186/1.687, allocations: 0.9409 MB / 0.7836 GB, free: 207.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005137/1.692, allocations: 1.616 MB / 0.7852 GB, free: 207 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009244/1.701, allocations: 10.21 MB / 0.7951 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/1.706, allocations: 416.2 kB / 0.7955 GB, free: 197.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000628/1.707, allocations: 363.4 kB / 0.7959 GB, free: 197.6 MB / 0.5763 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.00543/1.712, allocations: 4.298 MB / 0.8001 GB, free: 193.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/1.713, allocations: 0.54 MB / 0.8006 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009738/1.723, allocations: 6.666 MB / 0.8071 GB, free: 187.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/1.723, allocations: 43.94 kB / 0.8072 GB, free: 187.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/1.723, allocations: 15.8 kB / 0.8072 GB, free: 187.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/1.723, allocations: 22.66 kB / 0.8072 GB, free: 187.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02521/1.748, allocations: 16.22 MB / 0.823 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/1.748, allocations: 4.5 kB / 0.823 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003021/1.751, allocations: 0.7723 MB / 0.8238 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/1.753, allocations: 0.7918 MB / 0.8246 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003268/1.754, allocations: 87.98 kB / 0.8246 GB, free: 172.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007898/1.762, allocations: 9.348 MB / 0.8338 GB, free: 162.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.762, allocations: 11.92 kB / 0.8338 GB, free: 162.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.773, allocations: 9.796 MB / 0.8434 GB, free: 152.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002686/1.776, allocations: 1.092 MB / 0.8444 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009996/1.777, allocations: 75.98 kB / 0.8445 GB, free: 151.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002832/1.78, allocations: 223.8 kB / 0.8447 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005329/1.78, allocations: 279.4 kB / 0.845 GB, free: 150.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/1.781, allocations: 112 kB / 0.8451 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005203/1.786, allocations: 3.503 MB / 0.8485 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9.42e-07/1.786, allocations: 0 / 0.8485 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008029/1.794, allocations: 1.933 MB / 0.8504 GB, free: 145.3 MB / 0.5763 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,62.5%), (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.01378/1.808, allocations: 10.54 MB / 0.8607 GB, free: 134.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01096/1.819, allocations: 7.854 MB / 0.8683 GB, free: 126.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.819, allocations: 0 / 0.8683 GB, free: 126.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004904/1.824, allocations: 3.625 MB / 0.8719 GB, free: 123.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006895/1.831, allocations: 1.389 MB / 0.8732 GB, free: 121.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08944/1.92, allocations: 67.06 MB / 0.9387 GB, free: 50.71 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006137/1.926, allocations: 7.42 MB / 0.946 GB, free: 43.24 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005785/1.932, allocations: 2.194 MB / 0.9481 GB, free: 41.04 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00617/1.938, allocations: 4.502 MB / 0.9525 GB, free: 36.54 MB / 0.5763 GB Notification: Performance of SimCode: time 1.403e-06/1.938, allocations: 0 / 0.9525 GB, free: 36.54 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3689/2.307, allocations: 153.9 MB / 1.103 GB, free: 111.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.93/26.23, allocations: 12.56 kB / 1.103 GB, free: 111.4 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches