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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001474/0.001473, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.453/1.453, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0009385/0.0009385, allocations: 86.34 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002959, allocations: 11.98 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2269, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.009848/0.2368, allocations: 9.608 MB / 384.7 MB, free: 37.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00806/0.2449, allocations: 3.45 MB / 388.2 MB, free: 35.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.2474, allocations: 50.94 kB / 388.2 MB, free: 35.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.2497, allocations: 0.6559 MB / 388.9 MB, free: 34.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00349/0.2532, allocations: 0.7413 MB / 389.6 MB, free: 33.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.2543, allocations: 295.5 kB / 389.9 MB, free: 33.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004346/0.2587, allocations: 3.019 MB / 392.9 MB, free: 30.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002673/0.2614, allocations: 2.242 MB / 395.1 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001803/0.2632, allocations: 1.019 MB / 396.2 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.2654, allocations: 1.416 MB / 397.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004469/0.2659, allocations: 156 kB / 397.7 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009763/0.2669, allocations: 263.8 kB / 398 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.2676, allocations: 0.7983 MB / 398.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001471/0.2691, allocations: 1.343 MB / 400.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.272, allocations: 3.923 MB / 404.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.272, allocations: 0 / 404.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.272, allocations: 0 / 404.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001178/0.2721, allocations: 0 / 404.1 MB, free: 19.61 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005262/0.2774, allocations: 2.853 MB / 406.9 MB, free: 16.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2775, allocations: 8.031 kB / 406.9 MB, free: 16.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009335/0.2784, allocations: 341.1 kB / 407.3 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002554/0.281, allocations: 1.694 MB / 408.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.2811, allocations: 201.3 kB / 409.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.2814, allocations: 251.8 kB / 409.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004731/0.2862, allocations: 3.26 MB / 412.6 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.148e-05/0.2863, allocations: 4 kB / 412.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000198/0.2865, allocations: 108 kB / 412.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.89e-05/0.2866, allocations: 124.9 kB / 412.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004129/0.2907, allocations: 2.725 MB / 415.6 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.3071, allocations: 10.56 MB / 426.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.3091, allocations: 1.359 MB / 427.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.3104, allocations: 0.7852 MB / 428.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003309/0.3108, allocations: 199.2 kB / 428.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.3108, allocations: 43.56 kB / 428.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.346e-06/0.3108, allocations: 8 kB / 428.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01591/0.3267, allocations: 7.058 MB / 435.6 MB, free: 3.234 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.3268, allocations: 68.34 kB / 435.7 MB, free: 3.152 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/0.3296, allocations: 1.778 MB / 437.5 MB, free: 1.375 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.3297, allocations: 45.7 kB / 437.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009665/0.3307, allocations: 1.283 MB / 438.8 MB, free: 24 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004441/0.3311, allocations: 422.1 kB / 439.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.029e-05/0.3312, allocations: 32 kB / 439.2 MB, free: 15.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3315, allocations: 377.8 kB / 439.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.3327, allocations: 0.7652 MB / 440.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.3343, allocations: 1.293 MB / 441.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003021/0.3373, allocations: 2.207 MB / 443.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.3373, allocations: 8 kB / 443.9 MB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004483/0.3418, allocations: 2.463 MB / 446.3 MB, free: 7.969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.382e-05/0.3419, allocations: 15.98 kB / 446.3 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.342, allocations: 19.94 kB / 446.4 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006968/0.3427, allocations: 239.2 kB / 446.6 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.3442, allocations: 423.5 kB / 447 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.347, allocations: 3.001 MB / 450 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.3487, allocations: 135.7 kB / 450.1 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.3489, allocations: 68 kB / 450.2 MB, free: 3.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001876/0.3507, allocations: 0.8252 MB / 451 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000633/0.3514, allocations: 193.7 kB / 451.2 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.3554, allocations: 2.027 MB / 453.3 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-05/0.3554, allocations: 12 kB / 453.3 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3554, allocations: 4 kB / 453.3 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.3555, allocations: 7.969 kB / 453.3 MB, free: 0.707 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009158/0.3646, allocations: 4.744 MB / 458 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.3647, allocations: 4 kB / 458 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.3658, allocations: 259.6 kB / 458.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005856/0.3664, allocations: 207.5 kB / 458.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.364e-05/0.3665, allocations: 27.98 kB / 458.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/0.3695, allocations: 2.974 MB / 461.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.3695, allocations: 3.938 kB / 461.5 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005532/0.3751, allocations: 3.114 MB / 464.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.3764, allocations: 442.6 kB / 465 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000294/0.3767, allocations: 28 kB / 465.1 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009607/0.3777, allocations: 95.86 kB / 465.2 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.3779, allocations: 76.89 kB / 465.2 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.786e-05/0.378, allocations: 40 kB / 465.3 MB, free: 4.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002419/0.3804, allocations: 1.204 MB / 466.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.505e-06/0.3805, allocations: 0 / 466.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002296/0.3828, allocations: 491.9 kB / 467 MB, free: 2.586 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004605/0.3832, allocations: 199 kB / 467.1 MB, free: 2.383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003847/0.3871, allocations: 2.33 MB / 469.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/0.3871, allocations: 0 / 469.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.3891, allocations: 1.344 MB / 470.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003291/0.3924, allocations: 465.6 kB / 471.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.4031, allocations: 5.86 MB / 477.1 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/0.4052, allocations: 1.977 MB / 479.1 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008691/0.4061, allocations: 147.4 kB / 479.3 MB, free: 6.039 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4061, allocations: 0 / 479.3 MB, free: 6.039 MB / 362.7 MB Notification: Performance of Templates: time 0.4006/0.8067, allocations: 82.19 MB / 0.5483 GB, free: 54.41 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches