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.00104/0.00104, allocations: 175.7 kB / 16.72 MB, free: 5.078 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.363/1.363, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008015/0.0008014, allocations: 81.06 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003269, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2161, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.008988/0.2252, allocations: 10.25 MB / 385.3 MB, free: 37.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.2321, allocations: 3.726 MB / 389.1 MB, free: 34.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.2341, allocations: 58.88 kB / 389.1 MB, free: 34.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.2363, allocations: 0.6856 MB / 389.8 MB, free: 33.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003517/0.2399, allocations: 0.8105 MB / 390.6 MB, free: 33.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.2412, allocations: 335.4 kB / 390.9 MB, free: 32.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003776/0.245, allocations: 3.336 MB / 394.3 MB, free: 29.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002705/0.2477, allocations: 2.499 MB / 396.8 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.2496, allocations: 1.113 MB / 397.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002248/0.2519, allocations: 1.564 MB / 399.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005007/0.2524, allocations: 168 kB / 399.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.2536, allocations: 291.8 kB / 399.9 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007769/0.2543, allocations: 0.9072 MB / 400.8 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.256, allocations: 1.479 MB / 402.3 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.2593, allocations: 4.426 MB / 406.7 MB, free: 16.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.2593, allocations: 3.984 kB / 406.7 MB, free: 16.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2593, allocations: 4 kB / 406.7 MB, free: 16.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001578/0.2595, allocations: 0 / 406.7 MB, free: 16.93 MB / 298.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.006117/0.2656, allocations: 3.194 MB / 409.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.2657, allocations: 8.031 kB / 409.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.2669, allocations: 392.6 kB / 410.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003451/0.2704, allocations: 1.946 MB / 412.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.2706, allocations: 218 kB / 412.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000446/0.271, allocations: 283.9 kB / 412.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005906/0.2769, allocations: 3.681 MB / 416.4 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.4e-05/0.277, allocations: 7.938 kB / 416.4 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.2773, allocations: 116 kB / 416.6 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.2774, allocations: 141.5 kB / 416.7 MB, free: 6.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004839/0.2822, allocations: 3.086 MB / 419.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01942/0.3017, allocations: 11.7 MB / 431.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.3044, allocations: 1.903 MB / 433.4 MB, free: 5.625 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.3063, allocations: 1.088 MB / 434.5 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003157/0.3066, allocations: 207.2 kB / 434.7 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3066, allocations: 47.5 kB / 434.7 MB, free: 4.238 MB / 314.7 MB Notification: Performance of pre-optimization done (n=125): time 3.978e-06/0.3067, allocations: 0 / 434.7 MB, free: 4.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=140): time 0.01427/0.3209, allocations: 6.546 MB / 441.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.321, allocations: 76.64 kB / 441.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.3244, allocations: 1.979 MB / 443.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000183/0.3246, allocations: 49.7 kB / 443.4 MB, free: 11.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.3257, allocations: 1.412 MB / 444.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005125/0.3262, allocations: 488.9 kB / 445.2 MB, free: 9.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3263, allocations: 36 kB / 445.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3265, allocations: 381.8 kB / 445.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.3279, allocations: 0.8159 MB / 446.5 MB, free: 8.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/0.3296, allocations: 1.371 MB / 447.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.3329, allocations: 2.357 MB / 450.2 MB, free: 4.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.3329, allocations: 7.984 kB / 450.2 MB, free: 4.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005346/0.3382, allocations: 2.834 MB / 453 MB, free: 1.152 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/0.3383, allocations: 12 kB / 453.1 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.612e-05/0.3383, allocations: 20 kB / 453.1 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009255/0.3393, allocations: 395.5 kB / 453.5 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.3408, allocations: 435.3 kB / 453.9 MB, free: 304 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006179/0.347, allocations: 6.151 MB / 460 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/0.3489, allocations: 127.8 kB / 460.2 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.3492, allocations: 76 kB / 460.2 MB, free: 9.543 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001933/0.3511, allocations: 0.9148 MB / 461.2 MB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004959/0.3516, allocations: 209.5 kB / 461.4 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004181/0.3558, allocations: 2.425 MB / 463.8 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.3558, allocations: 12 kB / 463.8 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.3558, allocations: 4 kB / 463.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.3559, allocations: 7.969 kB / 463.8 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009656/0.3655, allocations: 5.528 MB / 469.3 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.3656, allocations: 4 kB / 469.3 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.3667, allocations: 263.6 kB / 469.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.3677, allocations: 399.3 kB / 470 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.3678, allocations: 35.98 kB / 470 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007623/0.3755, allocations: 7.579 MB / 477.6 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.3755, allocations: 8.062 kB / 477.6 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005891/0.3814, allocations: 3.602 MB / 481.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/0.3828, allocations: 474.3 kB / 481.7 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003883/0.3832, allocations: 39.92 kB / 481.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.3843, allocations: 91.89 kB / 481.8 MB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.3846, allocations: 109 kB / 481.9 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.233e-05/0.3847, allocations: 39.98 kB / 481.9 MB, free: 2.953 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002298/0.387, allocations: 1.346 MB / 483.3 MB, free: 1.586 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.394e-06/0.387, allocations: 4 kB / 483.3 MB, free: 1.582 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002667/0.3897, allocations: 0.5508 MB / 483.8 MB, free: 1.031 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005574/0.3902, allocations: 186.9 kB / 484 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003941/0.3942, allocations: 2.488 MB / 486.5 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.3942, allocations: 0 / 486.5 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002096/0.3963, allocations: 1.488 MB / 488 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/0.4001, allocations: 0.5067 MB / 488.5 MB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.4111, allocations: 6.816 MB / 495.3 MB, free: 5.344 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.4133, allocations: 2.167 MB / 497.5 MB, free: 3.145 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008723/0.4142, allocations: 167.4 kB / 497.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.783e-06/0.4142, allocations: 0 / 497.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of Templates: time 0.2902/0.7044, allocations: 91.16 MB / 0.575 GB, free: 27.2 MB / 378.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/jenkins/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