Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001485/0.001484, allocations: 181.7 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 1.938/1.938, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001085/0.001085, allocations: 86.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.52e-05/3.535e-05, allocations: 0 / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09408, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4479/0.542, allocations: 113.2 MB / 482.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5424, allocations: 82.23 kB / 482.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.275/0.8174, allocations: 58.43 MB / 0.5281 GB, free: 3.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.8174, allocations: 0 / 0.5281 GB, free: 3.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003976/0.8178, allocations: 83.88 kB / 0.5282 GB, free: 3.008 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01391/0.8317, allocations: 2.888 MB / 0.531 GB, free: 56 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.8318, allocations: 12.02 kB / 0.531 GB, free: 44 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2753/1.107, allocations: 395.7 kB / 0.5314 GB, free: 93.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008176/1.115, allocations: 2.155 MB / 0.5335 GB, free: 92.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002659/1.116, allocations: 220.5 kB / 0.5337 GB, free: 92.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/1.117, allocations: 284.3 kB / 0.534 GB, free: 92.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/1.128, allocations: 3.602 MB / 0.5375 GB, free: 92.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/1.128, allocations: 7.953 kB / 0.5375 GB, free: 92.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005103/1.129, allocations: 122.3 kB / 0.5377 GB, free: 92.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002221/1.129, allocations: 132 kB / 0.5378 GB, free: 92.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009787/1.139, allocations: 2.878 MB / 0.5406 GB, free: 92.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03215/1.171, allocations: 11.68 MB / 0.552 GB, free: 89.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003721/1.175, allocations: 1.943 MB / 0.5539 GB, free: 88.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/1.177, allocations: 0.9295 MB / 0.5548 GB, free: 88.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004781/1.177, allocations: 221.6 kB / 0.555 GB, free: 88.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/1.177, allocations: 48.97 kB / 0.5551 GB, free: 88.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 4.389e-06/1.177, allocations: 0 / 0.5551 GB, free: 88.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=149): time 0.02112/1.198, allocations: 6.386 MB / 0.5613 GB, free: 86.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/1.198, allocations: 67.81 kB / 0.5614 GB, free: 86.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00379/1.202, allocations: 1.713 MB / 0.563 GB, free: 85.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003735/1.203, allocations: 53.17 kB / 0.5631 GB, free: 85.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009468/1.204, allocations: 1.326 MB / 0.5644 GB, free: 84.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006578/1.204, allocations: 0.5052 MB / 0.5649 GB, free: 84.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/1.205, allocations: 35.22 kB / 0.5649 GB, free: 84.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/1.205, allocations: 385.7 kB / 0.5653 GB, free: 83.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/1.207, allocations: 0.8586 MB / 0.5661 GB, free: 83.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/1.209, allocations: 1.394 MB / 0.5675 GB, free: 82.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002495/1.212, allocations: 1.098 MB / 0.5685 GB, free: 82.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.019e-05/1.212, allocations: 3.656 kB / 0.5685 GB, free: 82.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007431/1.219, allocations: 2.862 MB / 0.5713 GB, free: 81.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/1.219, allocations: 10.59 kB / 0.5714 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.348e-05/1.219, allocations: 24.25 kB / 0.5714 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002215/1.221, allocations: 0.5406 MB / 0.5719 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003172/1.225, allocations: 448.6 kB / 0.5723 GB, free: 80.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.235, allocations: 6.265 MB / 0.5784 GB, free: 76.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/1.238, allocations: 135.5 kB / 0.5786 GB, free: 76.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002679/1.238, allocations: 82.11 kB / 0.5787 GB, free: 76.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000441/1.238, allocations: 215.2 kB / 0.5789 GB, free: 76.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/1.239, allocations: 209.4 kB / 0.5791 GB, free: 76.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006602/1.246, allocations: 2.624 MB / 0.5816 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/1.246, allocations: 11.44 kB / 0.5816 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/1.246, allocations: 6.938 kB / 0.5816 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.774e-05/1.246, allocations: 10.95 kB / 0.5817 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/1.26, allocations: 5.715 MB / 0.5872 GB, free: 73.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.26, allocations: 3.969 kB / 0.5872 GB, free: 73.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/1.262, allocations: 253.6 kB / 0.5875 GB, free: 73.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/1.265, allocations: 0.5896 MB / 0.5881 GB, free: 73.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002563/1.265, allocations: 41.75 kB / 0.5881 GB, free: 73.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/1.277, allocations: 7.98 MB / 0.5959 GB, free: 67.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.277, allocations: 7.375 kB / 0.5959 GB, free: 67.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00901/1.286, allocations: 4.025 MB / 0.5998 GB, free: 65.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001711/1.288, allocations: 490.8 kB / 0.6003 GB, free: 65.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005272/1.289, allocations: 36.45 kB / 0.6003 GB, free: 65.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002052/1.291, allocations: 99.47 kB / 0.6004 GB, free: 65.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/1.291, allocations: 114.1 kB / 0.6005 GB, free: 65.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.291, allocations: 45.94 kB / 0.6006 GB, free: 65.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002839/1.294, allocations: 1.307 MB / 0.6018 GB, free: 64.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.81e-07/1.294, allocations: 0 / 0.6018 GB, free: 64.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003205/1.298, allocations: 0.6197 MB / 0.6025 GB, free: 64.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (124): * Single equations (assignments): 121 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008766/1.298, allocations: 400.2 kB / 0.6028 GB, free: 64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005682/1.304, allocations: 2.58 MB / 0.6054 GB, free: 61.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.304, allocations: 0 / 0.6054 GB, free: 61.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003597/1.308, allocations: 1.571 MB / 0.6069 GB, free: 60.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/1.312, allocations: 498.6 kB / 0.6074 GB, free: 59.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.323, allocations: 4.684 MB / 0.6119 GB, free: 55.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/1.326, allocations: 2.26 MB / 0.6141 GB, free: 53.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.327, allocations: 157.8 kB / 0.6143 GB, free: 53.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/1.327, allocations: 0 / 0.6143 GB, free: 53.61 MB / 410.7 MB Notification: Performance of Templates: time 0.1247/1.452, allocations: 75.28 MB / 0.6878 GB, free: 1.715 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches