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.001472/0.001472, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 82.48 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.07e-05, allocations: 4 kB / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3318, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1847/0.5166, allocations: 112.5 MB / 474.9 MB, free: 5.688 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.517, allocations: 87.95 kB / 475 MB, free: 5.602 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5324/1.049, allocations: 57.63 MB / 0.5201 GB, free: 99.34 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.655e-06/1.049, allocations: 4 kB / 0.5201 GB, free: 99.34 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003944/1.05, allocations: 85.47 kB / 0.5202 GB, free: 99.32 MB / 395.1 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.01131/1.061, allocations: 2.882 MB / 0.523 GB, free: 98.08 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.061, allocations: 8.875 kB / 0.523 GB, free: 98.08 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002773/1.064, allocations: 398.9 kB / 0.5234 GB, free: 97.9 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008413/1.073, allocations: 2.18 MB / 0.5256 GB, free: 97.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/1.073, allocations: 95.77 kB / 0.5256 GB, free: 97.38 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/1.074, allocations: 170.3 kB / 0.5258 GB, free: 97.37 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009579/1.084, allocations: 2.685 MB / 0.5284 GB, free: 97.19 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/1.096, allocations: 3.188 MB / 0.5315 GB, free: 95.78 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001909/1.096, allocations: 13.33 kB / 0.5316 GB, free: 95.77 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/1.097, allocations: 7.422 kB / 0.5316 GB, free: 95.77 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/1.098, allocations: 135.1 kB / 0.5317 GB, free: 95.76 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03279/1.13, allocations: 11.14 MB / 0.5426 GB, free: 90.02 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004041/1.134, allocations: 1.94 MB / 0.5445 GB, free: 88.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/1.137, allocations: 0.9008 MB / 0.5453 GB, free: 88.52 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005393/1.137, allocations: 223.1 kB / 0.5456 GB, free: 88.32 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.138, allocations: 50.72 kB / 0.5456 GB, free: 88.27 MB / 395.1 MB Notification: Performance of pre-optimization done (n=134): time 4.148e-06/1.138, allocations: 0 / 0.5456 GB, free: 88.27 MB / 395.1 MB Notification: Performance of matching and sorting (n=155): time 0.01899/1.157, allocations: 5.578 MB / 0.5511 GB, free: 85.95 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/1.157, allocations: 74.25 kB / 0.5511 GB, free: 85.88 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003887/1.161, allocations: 1.467 MB / 0.5526 GB, free: 85.3 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000446/1.161, allocations: 29.36 kB / 0.5526 GB, free: 85.27 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/1.162, allocations: 1.334 MB / 0.5539 GB, free: 84.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000911/1.163, allocations: 0.5051 MB / 0.5544 GB, free: 83.78 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/1.163, allocations: 0 / 0.5544 GB, free: 83.78 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/1.164, allocations: 389.7 kB / 0.5548 GB, free: 83.43 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/1.166, allocations: 0.8398 MB / 0.5556 GB, free: 83.11 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002617/1.168, allocations: 1.358 MB / 0.5569 GB, free: 81.89 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00278/1.171, allocations: 1.073 MB / 0.5579 GB, free: 80.96 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.142e-05/1.171, allocations: 8 kB / 0.558 GB, free: 80.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.007983/1.179, allocations: 2.698 MB / 0.5606 GB, free: 78.61 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.532e-05/1.179, allocations: 15.95 kB / 0.5606 GB, free: 78.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.836e-05/1.179, allocations: 20 kB / 0.5606 GB, free: 78.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/1.182, allocations: 0.5412 MB / 0.5612 GB, free: 78.12 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003368/1.185, allocations: 453.1 kB / 0.5616 GB, free: 77.76 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.195, allocations: 6.005 MB / 0.5674 GB, free: 72.13 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/1.198, allocations: 99.28 kB / 0.5675 GB, free: 72.07 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005196/1.199, allocations: 83.77 kB / 0.5676 GB, free: 72 MB / 395.1 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 (215): * Single equations (assignments): 212 * 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.0004646/1.199, allocations: 168.9 kB / 0.5678 GB, free: 71.83 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006798/1.2, allocations: 193.6 kB / 0.568 GB, free: 71.64 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006807/1.207, allocations: 2.52 MB / 0.5704 GB, free: 69.38 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/1.207, allocations: 16 kB / 0.5704 GB, free: 69.36 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/1.207, allocations: 4 kB / 0.5704 GB, free: 69.36 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-05/1.207, allocations: 7.922 kB / 0.5705 GB, free: 69.35 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/1.222, allocations: 5.306 MB / 0.5756 GB, free: 63.98 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/1.222, allocations: 6 kB / 0.5756 GB, free: 63.97 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.224, allocations: 275.6 kB / 0.5759 GB, free: 63.7 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002551/1.227, allocations: 0.5781 MB / 0.5765 GB, free: 63.12 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000358/1.227, allocations: 23.98 kB / 0.5765 GB, free: 63.09 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/1.239, allocations: 7.667 MB / 0.584 GB, free: 55.1 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.239, allocations: 4 kB / 0.584 GB, free: 55.09 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/1.248, allocations: 3.985 MB / 0.5879 GB, free: 50.99 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/1.25, allocations: 478.5 kB / 0.5883 GB, free: 50.5 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007655/1.251, allocations: 12 kB / 0.5883 GB, free: 50.49 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002104/1.253, allocations: 83.86 kB / 0.5884 GB, free: 50.41 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/1.253, allocations: 105.1 kB / 0.5885 GB, free: 50.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/1.253, allocations: 51.98 kB / 0.5886 GB, free: 50.25 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002389/1.256, allocations: 1.096 MB / 0.5896 GB, free: 49.17 MB / 395.1 MB Notification: Performance of sort global known variables: time 9.11e-07/1.256, allocations: 0 / 0.5896 GB, free: 49.17 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003351/1.259, allocations: 0.5273 MB / 0.5902 GB, free: 48.64 MB / 395.1 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 (127): * Single equations (assignments): 124 * 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.0009033/1.26, allocations: 387.9 kB / 0.5905 GB, free: 48.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005771/1.266, allocations: 2.498 MB / 0.593 GB, free: 45.77 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.266, allocations: 6.688 kB / 0.593 GB, free: 45.76 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003536/1.269, allocations: 1.54 MB / 0.5945 GB, free: 44.19 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004008/1.273, allocations: 419.6 kB / 0.5949 GB, free: 43.79 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/1.286, allocations: 4.629 MB / 0.5994 GB, free: 39.11 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/1.288, allocations: 2.244 MB / 0.6016 GB, free: 36.84 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.29, allocations: 163.4 kB / 0.6017 GB, free: 36.68 MB / 395.1 MB Notification: Performance of SimCode: time 1.503e-06/1.29, allocations: 0 / 0.6017 GB, free: 36.68 MB / 395.1 MB Notification: Performance of Templates: time 0.4122/1.702, allocations: 73.95 MB / 0.674 GB, free: 103.1 MB / 411.1 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