Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001311/0.001311, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.00126/0.00126, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001697, allocations: 59.92 kB / 328.1 MB, free: 3.746 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.1002, allocations: 46.62 MB / 374.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2197/0.3199, allocations: 41.75 MB / 416.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02853/0.3485, allocations: 11.09 MB / 427.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01293/0.3615, allocations: 267.5 kB / 427.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02234/0.3839, allocations: 8.793 MB / 436.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01593/0.3998, allocations: 3.791 MB / 440.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008516/0.4084, allocations: 2.464 MB / 442.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02202/0.4304, allocations: 13.88 MB / 456.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03855/0.469, allocations: 25.8 MB / 482.5 MB, free: 3.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0127/0.4818, allocations: 7.207 MB / 489.7 MB, free: 12.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01444/0.4962, allocations: 8.241 MB / 498 MB, free: 4.254 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005434/0.5017, allocations: 2.031 MB / 0.4883 GB, free: 2.223 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007545/0.5093, allocations: 2.414 MB / 0.4906 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006794/0.5161, allocations: 4.235 MB / 0.4948 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01474/0.5309, allocations: 8.038 MB / 0.5026 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03804/0.5689, allocations: 27.08 MB / 0.5291 GB, free: 8.328 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.569, allocations: 0 / 0.5291 GB, free: 8.328 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.569, allocations: 0 / 0.5291 GB, free: 8.328 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008189/0.5698, allocations: 0 / 0.5291 GB, free: 8.328 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05127/0.6211, allocations: 16.33 MB / 0.545 GB, free: 7.863 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.6212, allocations: 12.03 kB / 0.545 GB, free: 7.852 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006442/0.6276, allocations: 1.843 MB / 0.5468 GB, free: 6 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3875/1.015, allocations: 9.253 MB / 0.5559 GB, free: 134.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01586/1.031, allocations: 7.739 MB / 0.5634 GB, free: 132.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009874/1.032, allocations: 0.9679 MB / 0.5644 GB, free: 132 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005194/1.037, allocations: 1.277 MB / 0.5656 GB, free: 131.6 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04361/1.081, allocations: 20.51 MB / 0.5856 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003691/1.081, allocations: 31.69 kB / 0.5857 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002618/1.084, allocations: 0.5283 MB / 0.5862 GB, free: 122.7 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005017/1.085, allocations: 0.7493 MB / 0.5869 GB, free: 122.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/1.117, allocations: 19.25 MB / 0.6057 GB, free: 104.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08916/1.206, allocations: 64.49 MB / 0.6687 GB, free: 39.22 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03683/1.243, allocations: 57.27 MB / 0.7246 GB, free: 7.082 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007657/1.251, allocations: 4.172 MB / 0.7287 GB, free: 2.891 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02093/1.272, allocations: 11.66 MB / 0.7401 GB, free: 7.395 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.223e-05/1.272, allocations: 73.34 kB / 0.7402 GB, free: 7.312 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.68e-06/1.272, allocations: 0 / 0.7402 GB, free: 7.312 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2488/1.521, allocations: 18.03 MB / 0.7578 GB, free: 166.8 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/1.521, allocations: 98.03 kB / 0.7579 GB, free: 166.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009884/1.531, allocations: 5.693 MB / 0.7634 GB, free: 164.8 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007613/1.531, allocations: 90.92 kB / 0.7635 GB, free: 164.7 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004228/1.536, allocations: 6.272 MB / 0.7696 GB, free: 160.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001747/1.537, allocations: 1.49 MB / 0.7711 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002281/1.54, allocations: 1.554 MB / 0.7726 GB, free: 158.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.258e-05/1.54, allocations: 303.2 kB / 0.7729 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/1.544, allocations: 3.147 MB / 0.776 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005406/1.549, allocations: 6.893 MB / 0.7827 GB, free: 151.1 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.559, allocations: 10.81 MB / 0.7933 GB, free: 142.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/1.56, allocations: 34.16 kB / 0.7933 GB, free: 142.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01965/1.579, allocations: 11.06 MB / 0.8041 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000148/1.579, allocations: 63.75 kB / 0.8042 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002498/1.58, allocations: 126.2 kB / 0.8043 GB, free: 138.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/1.582, allocations: 0.9713 MB / 0.8052 GB, free: 137.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006253/1.588, allocations: 1.864 MB / 0.807 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009972/1.598, allocations: 10.26 MB / 0.8171 GB, free: 127.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006905/1.605, allocations: 452.2 kB / 0.8175 GB, free: 127.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001317/1.607, allocations: 430.5 kB / 0.8179 GB, free: 127.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009455/1.616, allocations: 4.516 MB / 0.8223 GB, free: 123.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002371/1.619, allocations: 0.6047 MB / 0.8229 GB, free: 122.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/1.63, allocations: 6.696 MB / 0.8294 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/1.63, allocations: 40 kB / 0.8295 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-05/1.63, allocations: 8 kB / 0.8295 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.605e-05/1.631, allocations: 25.56 kB / 0.8295 GB, free: 116.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02935/1.66, allocations: 16.46 MB / 0.8456 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.66, allocations: 4 kB / 0.8456 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/1.663, allocations: 0.7777 MB / 0.8464 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/1.665, allocations: 0.7962 MB / 0.8471 GB, free: 99.29 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003784/1.665, allocations: 87.98 kB / 0.8472 GB, free: 99.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00793/1.673, allocations: 9.343 MB / 0.8563 GB, free: 89.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.673, allocations: 15.94 kB / 0.8564 GB, free: 89.44 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/1.685, allocations: 9.856 MB / 0.866 GB, free: 79.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/1.688, allocations: 1.145 MB / 0.8671 GB, free: 78.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007988/1.689, allocations: 76 kB / 0.8672 GB, free: 78.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002287/1.691, allocations: 231.5 kB / 0.8674 GB, free: 78 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005485/1.692, allocations: 270.8 kB / 0.8676 GB, free: 77.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002407/1.692, allocations: 120 kB / 0.8678 GB, free: 77.61 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004904/1.697, allocations: 3.753 MB / 0.8714 GB, free: 73.89 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.81e-07/1.697, allocations: 0 / 0.8714 GB, free: 73.89 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007809/1.705, allocations: 2.043 MB / 0.8734 GB, free: 71.85 MB / 0.5138 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01216/1.717, allocations: 10.59 MB / 0.8838 GB, free: 61.14 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01065/1.727, allocations: 8.245 MB / 0.8918 GB, free: 52.83 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.728, allocations: 4 kB / 0.8918 GB, free: 52.83 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004169/1.732, allocations: 3.63 MB / 0.8954 GB, free: 49.12 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00816/1.74, allocations: 1.428 MB / 0.8968 GB, free: 47.71 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.302/2.042, allocations: 72.81 MB / 0.9679 GB, free: 145.1 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007229/2.049, allocations: 7.699 MB / 0.9754 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005488/2.055, allocations: 2.393 MB / 0.9777 GB, free: 142.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00569/2.06, allocations: 4.703 MB / 0.9823 GB, free: 138.2 MB / 0.5138 GB Notification: Performance of SimCode: time 9.52e-07/2.06, allocations: 0 / 0.9823 GB, free: 138.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4169/2.477, allocations: 159.4 MB / 1.138 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.65/26.13, allocations: 1.906 kB / 1.138 GB, free: 123.6 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches