Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0012/0.0012, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008682/0.0008683, allocations: 70.73 kB / 267.9 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.67e-05/2.683e-05, allocations: 4 kB / 322.5 MB, free: 17.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.08187, allocations: 47.58 MB / 370 MB, free: 1.68 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4195, allocations: 118.8 MB / 488.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.4198, allocations: 87.95 kB / 488.9 MB, free: 7.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.419/0.8388, allocations: 80.39 MB / 0.5559 GB, free: 93.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.8389, allocations: 4 kB / 0.5559 GB, free: 93.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002791/0.8391, allocations: 97.56 kB / 0.556 GB, free: 93.42 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.007675/0.8468, allocations: 3.438 MB / 0.5594 GB, free: 92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.8469, allocations: 6.438 kB / 0.5594 GB, free: 92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00259/0.8495, allocations: 0.655 MB / 0.56 GB, free: 91.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006865/0.8563, allocations: 3.362 MB / 0.5633 GB, free: 91.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.8565, allocations: 260.4 kB / 0.5636 GB, free: 91.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004671/0.857, allocations: 348 kB / 0.5639 GB, free: 91.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006288/0.8633, allocations: 4.337 MB / 0.5681 GB, free: 90.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.12e-05/0.8634, allocations: 0 / 0.5681 GB, free: 90.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000311/0.8637, allocations: 150.3 kB / 0.5683 GB, free: 90.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.8638, allocations: 160.5 kB / 0.5684 GB, free: 90.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005051/0.8689, allocations: 3.435 MB / 0.5718 GB, free: 89.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.8893, allocations: 14.58 MB / 0.586 GB, free: 81.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003837/0.8932, allocations: 5.33 MB / 0.5912 GB, free: 76.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.8948, allocations: 1.268 MB / 0.5925 GB, free: 76.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00527/0.9, allocations: 3.854 MB / 0.5962 GB, free: 74.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.9001, allocations: 51.27 kB / 0.5963 GB, free: 74.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 3.216e-06/0.9001, allocations: 3.531 kB / 0.5963 GB, free: 74.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=130): time 0.005545/0.9056, allocations: 4.244 MB / 0.6004 GB, free: 71.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.9057, allocations: 69.16 kB / 0.6005 GB, free: 71.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/0.908, allocations: 1.824 MB / 0.6023 GB, free: 71.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.9081, allocations: 45.11 kB / 0.6023 GB, free: 71.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008001/0.9089, allocations: 1.671 MB / 0.6039 GB, free: 69.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.9092, allocations: 450.7 kB / 0.6044 GB, free: 69.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/0.9093, allocations: 35.88 kB / 0.6044 GB, free: 69.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.9094, allocations: 380.8 kB / 0.6048 GB, free: 69.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008783/0.9103, allocations: 0.6867 MB / 0.6054 GB, free: 68.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.9114, allocations: 1.306 MB / 0.6067 GB, free: 67.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.9125, allocations: 0.9359 MB / 0.6076 GB, free: 67.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.527e-06/0.9125, allocations: 7.781 kB / 0.6076 GB, free: 67.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.003215/0.9157, allocations: 2.452 MB / 0.61 GB, free: 65.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.9158, allocations: 20.03 kB / 0.61 GB, free: 65.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.9158, allocations: 20 kB / 0.6101 GB, free: 65.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/0.9161, allocations: 133.6 kB / 0.6102 GB, free: 65.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.9177, allocations: 469.7 kB / 0.6106 GB, free: 65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.9194, allocations: 3.077 MB / 0.6136 GB, free: 61.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.9208, allocations: 117.1 kB / 0.6138 GB, free: 61.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.9209, allocations: 76 kB / 0.6138 GB, free: 61.62 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.0002359/0.9212, allocations: 220.3 kB / 0.614 GB, free: 61.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.9214, allocations: 213.4 kB / 0.6142 GB, free: 61.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/0.9245, allocations: 2.15 MB / 0.6163 GB, free: 59.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.9245, allocations: 15.7 kB / 0.6164 GB, free: 59.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.9245, allocations: 4 kB / 0.6164 GB, free: 59.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.9245, allocations: 3.75 kB / 0.6164 GB, free: 59.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006818/0.9313, allocations: 5.148 MB / 0.6214 GB, free: 54.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.9314, allocations: 4 kB / 0.6214 GB, free: 54.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/0.9323, allocations: 232.1 kB / 0.6216 GB, free: 54.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006265/0.933, allocations: 275.6 kB / 0.6219 GB, free: 54.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/0.9331, allocations: 38.14 kB / 0.6219 GB, free: 54.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004491/0.9376, allocations: 7.099 MB / 0.6288 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.9376, allocations: 0 / 0.6288 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003981/0.9416, allocations: 3.305 MB / 0.6321 GB, free: 43.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.9428, allocations: 472 kB / 0.6325 GB, free: 43.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.943, allocations: 32 kB / 0.6326 GB, free: 43.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009815/0.944, allocations: 73.75 kB / 0.6326 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.9443, allocations: 94.56 kB / 0.6327 GB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.678e-05/0.9443, allocations: 39.33 kB / 0.6328 GB, free: 43.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002219/0.9466, allocations: 1.393 MB / 0.6341 GB, free: 42.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9466, allocations: 0 / 0.6341 GB, free: 42.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002063/0.9486, allocations: 0.6054 MB / 0.6347 GB, free: 41.47 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.0006372/0.9493, allocations: 0.5033 MB / 0.6352 GB, free: 41.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.9518, allocations: 2.036 MB / 0.6372 GB, free: 39.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.9518, allocations: 0 / 0.6372 GB, free: 39.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.9533, allocations: 1.357 MB / 0.6385 GB, free: 37.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/0.9553, allocations: 0.5056 MB / 0.639 GB, free: 37.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007933/0.9633, allocations: 4.856 MB / 0.6437 GB, free: 32.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/0.965, allocations: 2.486 MB / 0.6462 GB, free: 31.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001808/0.9668, allocations: 499.5 kB / 0.6467 GB, free: 30.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.9672, allocations: 154.5 kB / 0.6468 GB, free: 30.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.313e-06/0.9672, allocations: 0 / 0.6468 GB, free: 30.57 MB / 410.7 MB Notification: Performance of Templates: time 0.04676/1.014, allocations: 30.8 MB / 0.6769 GB, free: 15.96 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches