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.0008751/0.0008751, allocations: 90.66 kB / 17.3 MB, free: 6.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.0009089/0.000909, allocations: 184.4 kB / 18.21 MB, free: 5.523 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.2/1.2, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.000471/0.0004711, allocations: 8 kB / 281.5 MB, free: 3.301 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09321, allocations: 47.58 MB / 329.1 MB, free: 3.641 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03741/0.1307, allocations: 39.41 MB / 368.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02155/0.1523, allocations: 10.87 MB / 379.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007497/0.1598, allocations: 251.1 kB / 379.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1666/0.3264, allocations: 2.272 MB / 381.9 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.3384, allocations: 3.428 MB / 385.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006999/0.3454, allocations: 2.075 MB / 387.4 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01923/0.3647, allocations: 14.08 MB / 401.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03878/0.4035, allocations: 24.51 MB / 426 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01018/0.4137, allocations: 5.079 MB / 431.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01081/0.4245, allocations: 6.397 MB / 437.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003047/0.4276, allocations: 0.793 MB / 438.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005911/0.4336, allocations: 1.189 MB / 439.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004418/0.438, allocations: 2.733 MB / 442.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01259/0.4506, allocations: 6.394 MB / 448.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02831/0.479, allocations: 25.32 MB / 473.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.479, allocations: 4 kB / 473.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.479, allocations: 4 kB / 473.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000655/0.4797, allocations: 0 / 473.9 MB, free: 11.76 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.03498/0.5147, allocations: 13.21 MB / 487.1 MB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5148, allocations: 12.03 kB / 487.1 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005852/0.5206, allocations: 1.844 MB / 489 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04849/0.5691, allocations: 9.21 MB / 498.2 MB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/0.5852, allocations: 7.682 MB / 0.494 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001159/0.5864, allocations: 0.9759 MB / 0.4949 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004625/0.5911, allocations: 1.283 MB / 0.4962 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.048/0.6391, allocations: 20.52 MB / 0.5162 GB, free: 5.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000601/0.6397, allocations: 19.81 kB / 0.5163 GB, free: 5.008 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003832/0.6436, allocations: 0.5281 MB / 0.5168 GB, free: 4.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008967/0.6445, allocations: 0.7455 MB / 0.5175 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03943/0.684, allocations: 19.25 MB / 0.5363 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3685/1.052, allocations: 65.25 MB / 0.6 GB, free: 92.99 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02828/1.081, allocations: 57.25 MB / 0.6559 GB, free: 35.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005867/1.087, allocations: 4.201 MB / 0.66 GB, free: 30.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.107, allocations: 11.68 MB / 0.6714 GB, free: 19.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/1.107, allocations: 73.41 kB / 0.6715 GB, free: 19.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.741e-06/1.107, allocations: 0 / 0.6715 GB, free: 19.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03167/1.138, allocations: 17.89 MB / 0.689 GB, free: 1.223 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/1.138, allocations: 98.56 kB / 0.6891 GB, free: 1.113 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009549/1.148, allocations: 5.682 MB / 0.6946 GB, free: 11.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003585/1.148, allocations: 93.7 kB / 0.6947 GB, free: 11.36 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004338/1.153, allocations: 6.051 MB / 0.7006 GB, free: 5.281 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.154, allocations: 1.421 MB / 0.702 GB, free: 3.871 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/1.155, allocations: 0.6049 MB / 0.7026 GB, free: 3.262 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/1.155, allocations: 305.1 kB / 0.7029 GB, free: 2.961 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1852/1.34, allocations: 3.144 MB / 0.706 GB, free: 145.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0099/1.35, allocations: 6.896 MB / 0.7127 GB, free: 140.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/1.363, allocations: 10.82 MB / 0.7233 GB, free: 133.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002353/1.363, allocations: 37.56 kB / 0.7233 GB, free: 133.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01635/1.379, allocations: 11.03 MB / 0.7341 GB, free: 128.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-05/1.379, allocations: 62.97 kB / 0.7341 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/1.379, allocations: 129.9 kB / 0.7342 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/1.382, allocations: 0.9768 MB / 0.7352 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005347/1.387, allocations: 1.86 MB / 0.737 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009094/1.396, allocations: 9.558 MB / 0.7463 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005084/1.401, allocations: 453.6 kB / 0.7468 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005034/1.402, allocations: 431.9 kB / 0.7472 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.005901/1.408, allocations: 4.508 MB / 0.7516 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000857/1.409, allocations: 0.5745 MB / 0.7522 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009566/1.418, allocations: 6.712 MB / 0.7587 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/1.418, allocations: 40 kB / 0.7587 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.483e-05/1.418, allocations: 8 kB / 0.7588 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.384e-05/1.418, allocations: 25.61 kB / 0.7588 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02884/1.447, allocations: 16.5 MB / 0.7749 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/1.447, allocations: 4 kB / 0.7749 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/1.45, allocations: 0.7825 MB / 0.7757 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/1.452, allocations: 0.7898 MB / 0.7764 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002107/1.452, allocations: 93.06 kB / 0.7765 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007781/1.46, allocations: 8.667 MB / 0.785 GB, free: 92.92 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.46, allocations: 4 kB / 0.785 GB, free: 92.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.472, allocations: 9.827 MB / 0.7946 GB, free: 83.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/1.474, allocations: 1.137 MB / 0.7957 GB, free: 82.15 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006228/1.475, allocations: 72 kB / 0.7958 GB, free: 82.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/1.477, allocations: 239.7 kB / 0.796 GB, free: 81.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005214/1.478, allocations: 270.8 kB / 0.7963 GB, free: 81.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002178/1.478, allocations: 123.9 kB / 0.7964 GB, free: 81.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004817/1.483, allocations: 3.752 MB / 0.8 GB, free: 77.74 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/1.483, allocations: 0 / 0.8 GB, free: 77.74 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006595/1.49, allocations: 2.037 MB / 0.802 GB, free: 75.71 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.0118/1.501, allocations: 10.55 MB / 0.8123 GB, free: 65.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.513, allocations: 8.23 MB / 0.8204 GB, free: 56.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.513, allocations: 0 / 0.8204 GB, free: 56.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004265/1.517, allocations: 3.629 MB / 0.8239 GB, free: 53.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008621/1.526, allocations: 1.331 MB / 0.8252 GB, free: 51.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3447/1.87, allocations: 97.53 MB / 0.9205 GB, free: 125.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01034/1.881, allocations: 7.697 MB / 0.928 GB, free: 122.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007071/1.888, allocations: 2.395 MB / 0.9303 GB, free: 121.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006401/1.894, allocations: 4.7 MB / 0.9349 GB, free: 116.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.573e-06/1.894, allocations: 4 kB / 0.9349 GB, free: 116.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4619/2.356, allocations: 157.2 MB / 1.088 GB, free: 127.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/2.356, allocations: 288.8 kB / 1.089 GB, free: 127 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.03/7.387, allocations: 0 / 1.089 GB, free: 127 MB / 478.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