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.001156/0.001156, allocations: 107.6 kB / 17.15 MB, free: 6.332 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.00116/0.00116, allocations: 198 kB / 18.07 MB, free: 5.434 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.248/1.248, allocations: 205.1 MB / 223.9 MB, free: 12.5 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.001234/0.001235, allocations: 47.92 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 46.63 MB / 326.7 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03943/0.1483, allocations: 41 MB / 367.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.1716, allocations: 10.95 MB / 378.7 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01072/0.1823, allocations: 255.1 kB / 378.9 MB, free: 364 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2072/0.3896, allocations: 8.23 MB / 387.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.4027, allocations: 3.453 MB / 390.6 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007248/0.41, allocations: 2.283 MB / 392.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02036/0.4303, allocations: 14.1 MB / 407 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02994/0.4603, allocations: 21 MB / 428 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01112/0.4715, allocations: 6.206 MB / 434.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01165/0.4831, allocations: 7.864 MB / 442.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00483/0.488, allocations: 1.34 MB / 443.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007091/0.4951, allocations: 1.731 MB / 445.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003883/0.499, allocations: 3.516 MB / 448.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01438/0.5134, allocations: 7.303 MB / 455.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02749/0.5409, allocations: 26.33 MB / 482.3 MB, free: 3.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.541, allocations: 0 / 482.3 MB, free: 3.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.541, allocations: 0 / 482.3 MB, free: 3.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008728/0.5419, allocations: 0 / 482.3 MB, free: 3.023 MB / 382.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.04715/0.589, allocations: 16.06 MB / 498.3 MB, free: 2.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.5891, allocations: 11.97 kB / 498.4 MB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00649/0.5956, allocations: 1.844 MB / 0.4885 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0494/0.645, allocations: 9.169 MB / 0.4974 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01885/0.6639, allocations: 7.655 MB / 0.5049 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001411/0.6653, allocations: 0.9765 MB / 0.5059 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00629/0.6717, allocations: 1.273 MB / 0.5071 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05423/0.7259, allocations: 20.52 MB / 0.5271 GB, free: 9.539 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006882/0.7266, allocations: 27.73 kB / 0.5272 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004259/0.7309, allocations: 0.5246 MB / 0.5277 GB, free: 9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008117/0.7318, allocations: 0.7416 MB / 0.5284 GB, free: 8.258 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2279/0.9597, allocations: 19.25 MB / 0.5472 GB, free: 138.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1129/1.073, allocations: 65.04 MB / 0.6107 GB, free: 91.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0286/1.101, allocations: 57.28 MB / 0.6667 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006471/1.108, allocations: 4.194 MB / 0.6708 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01979/1.128, allocations: 11.67 MB / 0.6821 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/1.128, allocations: 73.41 kB / 0.6822 GB, free: 11.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 4.949e-06/1.128, allocations: 4 kB / 0.6822 GB, free: 11.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03375/1.161, allocations: 17.85 MB / 0.6996 GB, free: 9.859 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/1.162, allocations: 94.58 kB / 0.6997 GB, free: 9.754 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01085/1.172, allocations: 5.685 MB / 0.7053 GB, free: 4.094 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000688/1.173, allocations: 93.7 kB / 0.7054 GB, free: 3.996 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.169/1.342, allocations: 6.039 MB / 0.7113 GB, free: 149.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.344, allocations: 1.418 MB / 0.7127 GB, free: 148.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002527/1.346, allocations: 1.54 MB / 0.7142 GB, free: 148.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/1.346, allocations: 308.8 kB / 0.7145 GB, free: 148.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00473/1.351, allocations: 3.147 MB / 0.7175 GB, free: 148 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005837/1.357, allocations: 6.896 MB / 0.7243 GB, free: 142 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.367, allocations: 10.81 MB / 0.7348 GB, free: 133.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001278/1.367, allocations: 35.66 kB / 0.7349 GB, free: 133.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01499/1.382, allocations: 11.03 MB / 0.7456 GB, free: 129.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/1.382, allocations: 65.73 kB / 0.7457 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002569/1.382, allocations: 126.8 kB / 0.7458 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/1.385, allocations: 0.982 MB / 0.7468 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005205/1.39, allocations: 1.854 MB / 0.7486 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00894/1.399, allocations: 9.547 MB / 0.7579 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/1.405, allocations: 459.2 kB / 0.7583 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000831/1.406, allocations: 431.5 kB / 0.7588 GB, free: 121.9 MB / 462.1 MB 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.006466/1.412, allocations: 4.513 MB / 0.7632 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.413, allocations: 0.5728 MB / 0.7637 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009952/1.423, allocations: 6.706 MB / 0.7703 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/1.423, allocations: 44 kB / 0.7703 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/1.423, allocations: 8 kB / 0.7703 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.172e-05/1.423, allocations: 20.58 kB / 0.7703 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.449, allocations: 16.49 MB / 0.7864 GB, free: 99.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/1.449, allocations: 4.5 kB / 0.7864 GB, free: 99.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003035/1.452, allocations: 0.7802 MB / 0.7872 GB, free: 98.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/1.454, allocations: 0.7923 MB / 0.788 GB, free: 97.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003871/1.454, allocations: 83.98 kB / 0.7881 GB, free: 97.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007741/1.462, allocations: 8.669 MB / 0.7965 GB, free: 88.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.462, allocations: 7.844 kB / 0.7965 GB, free: 88.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/1.474, allocations: 9.82 MB / 0.8061 GB, free: 78.87 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002314/1.476, allocations: 1.119 MB / 0.8072 GB, free: 77.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/1.478, allocations: 79.91 kB / 0.8073 GB, free: 77.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002848/1.48, allocations: 227.8 kB / 0.8075 GB, free: 77.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005375/1.481, allocations: 270.8 kB / 0.8078 GB, free: 77.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/1.481, allocations: 124 kB / 0.8079 GB, free: 77.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005852/1.487, allocations: 3.75 MB / 0.8116 GB, free: 73.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.487, allocations: 0 / 0.8116 GB, free: 73.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007959/1.495, allocations: 2.04 MB / 0.8135 GB, free: 71.29 MB / 462.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%), (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.01287/1.508, allocations: 10.55 MB / 0.8238 GB, free: 60.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01089/1.519, allocations: 8.219 MB / 0.8319 GB, free: 52.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.519, allocations: 4.188 kB / 0.8319 GB, free: 52.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004313/1.523, allocations: 3.617 MB / 0.8354 GB, free: 48.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007382/1.531, allocations: 1.328 MB / 0.8367 GB, free: 47.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2816/1.812, allocations: 97.41 MB / 0.9318 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00925/1.822, allocations: 7.687 MB / 0.9393 GB, free: 113.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006895/1.829, allocations: 2.405 MB / 0.9417 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006261/1.835, allocations: 4.697 MB / 0.9463 GB, free: 106.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/1.835, allocations: 0 / 0.9463 GB, free: 106.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.625/3.46, allocations: 159.1 MB / 1.102 GB, free: 102.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/3.46, allocations: 288.7 kB / 1.102 GB, free: 102.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.868/9.328, allocations: 0 / 1.102 GB, free: 102.5 MB / 462.1 MB (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","../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