Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002407/0.002407, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001072, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.343e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 47.58 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4958/0.5997, allocations: 118.8 MB / 487.9 MB, free: 7.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.6001, allocations: 85.83 kB / 487.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6473/1.247, allocations: 80.39 MB / 0.555 GB, free: 93.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.247, allocations: 2.156 kB / 0.555 GB, free: 93.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005223/1.248, allocations: 99.84 kB / 0.5551 GB, free: 93.15 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01774/1.266, allocations: 3.449 MB / 0.5585 GB, free: 91.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/1.266, allocations: 7.188 kB / 0.5585 GB, free: 91.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007105/1.273, allocations: 0.6411 MB / 0.5591 GB, free: 91.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01695/1.29, allocations: 3.356 MB / 0.5624 GB, free: 90.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003667/1.29, allocations: 263.8 kB / 0.5626 GB, free: 90.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/1.292, allocations: 348.3 kB / 0.563 GB, free: 90.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01446/1.306, allocations: 4.326 MB / 0.5672 GB, free: 90.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001587/1.307, allocations: 7.297 kB / 0.5672 GB, free: 90.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009395/1.308, allocations: 149.9 kB / 0.5673 GB, free: 90.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/1.308, allocations: 163.9 kB / 0.5675 GB, free: 90.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/1.32, allocations: 3.444 MB / 0.5709 GB, free: 89.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/1.359, allocations: 14.58 MB / 0.5851 GB, free: 81.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007287/1.366, allocations: 5.34 MB / 0.5903 GB, free: 76.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003375/1.37, allocations: 1.255 MB / 0.5915 GB, free: 76.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/1.38, allocations: 3.854 MB / 0.5953 GB, free: 74.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/1.38, allocations: 54.53 kB / 0.5954 GB, free: 73.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 4.979e-06/1.38, allocations: 0 / 0.5954 GB, free: 73.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=130): time 0.01072/1.391, allocations: 4.241 MB / 0.5995 GB, free: 71.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/1.391, allocations: 68.09 kB / 0.5996 GB, free: 71.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/1.396, allocations: 1.829 MB / 0.6014 GB, free: 70.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003563/1.396, allocations: 49.23 kB / 0.6014 GB, free: 70.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/1.397, allocations: 1.565 MB / 0.6029 GB, free: 69.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000739/1.398, allocations: 459.4 kB / 0.6034 GB, free: 69.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/1.398, allocations: 39.88 kB / 0.6034 GB, free: 69.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/1.398, allocations: 378.3 kB / 0.6038 GB, free: 68.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/1.4, allocations: 0.6906 MB / 0.6044 GB, free: 68.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002334/1.403, allocations: 1.307 MB / 0.6057 GB, free: 67.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/1.405, allocations: 0.9399 MB / 0.6066 GB, free: 67.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.011e-05/1.405, allocations: 7.375 kB / 0.6066 GB, free: 67.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006335/1.412, allocations: 2.308 MB / 0.6089 GB, free: 65.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/1.412, allocations: 12 kB / 0.6089 GB, free: 65.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.66e-05/1.412, allocations: 20 kB / 0.6089 GB, free: 65.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005629/1.412, allocations: 148 kB / 0.6091 GB, free: 65.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/1.416, allocations: 465.3 kB / 0.6095 GB, free: 65.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/1.419, allocations: 3.082 MB / 0.6125 GB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/1.422, allocations: 112.2 kB / 0.6126 GB, free: 62.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/1.422, allocations: 79.47 kB / 0.6127 GB, free: 61.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004402/1.423, allocations: 216.5 kB / 0.6129 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006558/1.423, allocations: 221.2 kB / 0.6131 GB, free: 61.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00529/1.428, allocations: 2.146 MB / 0.6152 GB, free: 59.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.429, allocations: 19.95 kB / 0.6152 GB, free: 59.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.429, allocations: 7.875 kB / 0.6152 GB, free: 59.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/1.429, allocations: 6.375 kB / 0.6152 GB, free: 59.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/1.441, allocations: 5.136 MB / 0.6203 GB, free: 55.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/1.442, allocations: 3.938 kB / 0.6203 GB, free: 55.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/1.444, allocations: 229.2 kB / 0.6205 GB, free: 55.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/1.446, allocations: 277.4 kB / 0.6207 GB, free: 54.83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002797/1.446, allocations: 31.94 kB / 0.6208 GB, free: 54.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007729/1.454, allocations: 7.103 MB / 0.6277 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.454, allocations: 8.125 kB / 0.6277 GB, free: 47.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006796/1.46, allocations: 3.296 MB / 0.6309 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/1.462, allocations: 467.1 kB / 0.6314 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004151/1.462, allocations: 24 kB / 0.6314 GB, free: 43.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.464, allocations: 83.02 kB / 0.6315 GB, free: 43.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/1.465, allocations: 88.73 kB / 0.6316 GB, free: 43.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/1.465, allocations: 39.8 kB / 0.6316 GB, free: 43.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003005/1.468, allocations: 1.398 MB / 0.633 GB, free: 42.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.468, allocations: 0 / 0.633 GB, free: 42.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003126/1.471, allocations: 0.6129 MB / 0.6336 GB, free: 41.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008651/1.472, allocations: 0.5025 MB / 0.6341 GB, free: 41.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004263/1.476, allocations: 2.038 MB / 0.6361 GB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.476, allocations: 4.062 kB / 0.6361 GB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002698/1.479, allocations: 1.353 MB / 0.6374 GB, free: 38.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003838/1.483, allocations: 0.4998 MB / 0.6379 GB, free: 37.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/1.495, allocations: 4.879 MB / 0.6426 GB, free: 33.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002579/1.497, allocations: 2.439 MB / 0.645 GB, free: 31.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.499, allocations: 170.1 kB / 0.6452 GB, free: 31.22 MB / 410.7 MB Notification: Performance of SimCode: time 1.683e-06/1.499, allocations: 0 / 0.6452 GB, free: 31.22 MB / 410.7 MB Notification: Performance of Templates: time 0.468/1.967, allocations: 95.25 MB / 0.7382 GB, free: 91.3 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches