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.001467/0.001467, allocations: 177.8 kB / 8.363 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 1.983/1.983, 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.001101/0.001101, allocations: 88.53 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.542e-05, allocations: 0 / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3411, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1915/0.5326, allocations: 109.3 MB / 471.6 MB, free: 8.992 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.533, allocations: 87.95 kB / 471.7 MB, free: 8.906 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.519/1.052, allocations: 52.28 MB / 0.5117 GB, free: 98.33 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.445e-06/1.052, allocations: 6.844 kB / 0.5117 GB, free: 98.32 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003128/1.052, allocations: 78.48 kB / 0.5118 GB, free: 98.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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.009817/1.062, allocations: 2.58 MB / 0.5143 GB, free: 97.21 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.062, allocations: 9.156 kB / 0.5143 GB, free: 97.21 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002168/1.064, allocations: 350.7 kB / 0.5146 GB, free: 97.05 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007019/1.071, allocations: 1.904 MB / 0.5165 GB, free: 96.57 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/1.072, allocations: 82.38 kB / 0.5166 GB, free: 96.57 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/1.073, allocations: 152.1 kB / 0.5167 GB, free: 96.57 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007513/1.08, allocations: 2.36 MB / 0.519 GB, free: 96.55 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008923/1.089, allocations: 2.832 MB / 0.5218 GB, free: 96.15 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/1.089, allocations: 5.969 kB / 0.5218 GB, free: 96.14 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003374/1.09, allocations: 3.875 kB / 0.5218 GB, free: 96.14 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001569/1.09, allocations: 118.2 kB / 0.5219 GB, free: 96.14 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02525/1.115, allocations: 9.996 MB / 0.5317 GB, free: 91.8 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/1.118, allocations: 1.4 MB / 0.533 GB, free: 91.06 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/1.12, allocations: 0.7335 MB / 0.5338 GB, free: 90.79 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004728/1.12, allocations: 216.3 kB / 0.534 GB, free: 90.6 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/1.12, allocations: 55.31 kB / 0.534 GB, free: 90.55 MB / 395.1 MB Notification: Performance of pre-optimization done (n=107): time 3.166e-06/1.12, allocations: 0 / 0.534 GB, free: 90.55 MB / 395.1 MB Notification: Performance of matching and sorting (n=137): time 0.01574/1.136, allocations: 5.158 MB / 0.539 GB, free: 88.46 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/1.136, allocations: 66.5 kB / 0.5391 GB, free: 88.39 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/1.139, allocations: 1.297 MB / 0.5404 GB, free: 87.87 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002964/1.139, allocations: 25.7 kB / 0.5404 GB, free: 87.84 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008149/1.14, allocations: 1.225 MB / 0.5416 GB, free: 86.84 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005545/1.14, allocations: 457.6 kB / 0.542 GB, free: 86.48 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/1.141, allocations: 0 / 0.542 GB, free: 86.48 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/1.141, allocations: 383.3 kB / 0.5424 GB, free: 86.14 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/1.142, allocations: 0.7631 MB / 0.5431 GB, free: 85.85 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/1.144, allocations: 1.269 MB / 0.5444 GB, free: 84.91 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/1.146, allocations: 0.9873 MB / 0.5453 GB, free: 84.54 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/1.146, allocations: 3.344 kB / 0.5454 GB, free: 84.54 MB / 395.1 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005102/1.151, allocations: 2.246 MB / 0.5475 GB, free: 83.7 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/1.151, allocations: 15.28 kB / 0.5476 GB, free: 83.7 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/1.152, allocations: 17.12 kB / 0.5476 GB, free: 83.7 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00096/1.153, allocations: 238.6 kB / 0.5478 GB, free: 83.62 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003237/1.156, allocations: 457.5 kB / 0.5482 GB, free: 83.58 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/1.159, allocations: 2.88 MB / 0.5511 GB, free: 80.97 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/1.161, allocations: 102.9 kB / 0.5512 GB, free: 80.96 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002496/1.161, allocations: 73 kB / 0.5512 GB, free: 80.95 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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.0003908/1.162, allocations: 159.8 kB / 0.5514 GB, free: 80.8 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004205/1.162, allocations: 174.8 kB / 0.5515 GB, free: 80.7 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/1.167, allocations: 2.022 MB / 0.5535 GB, free: 79.92 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.727e-05/1.167, allocations: 17.59 kB / 0.5535 GB, free: 79.92 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.167, allocations: 3.594 kB / 0.5535 GB, free: 79.92 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/1.167, allocations: 3.141 kB / 0.5535 GB, free: 79.92 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/1.178, allocations: 4.496 MB / 0.5579 GB, free: 78.09 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/1.178, allocations: 3.562 kB / 0.5579 GB, free: 78.09 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/1.181, allocations: 302.3 kB / 0.5582 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008662/1.182, allocations: 200.9 kB / 0.5584 GB, free: 77.83 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/1.182, allocations: 7.188 kB / 0.5584 GB, free: 77.83 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/1.185, allocations: 2.862 MB / 0.5612 GB, free: 74.88 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/1.185, allocations: 7.938 kB / 0.5612 GB, free: 74.87 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006887/1.192, allocations: 3.336 MB / 0.5645 GB, free: 71.76 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/1.194, allocations: 433.5 kB / 0.5649 GB, free: 71.36 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006883/1.194, allocations: 7.656 kB / 0.5649 GB, free: 71.35 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/1.196, allocations: 82.92 kB / 0.565 GB, free: 71.3 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003665/1.197, allocations: 88.33 kB / 0.5651 GB, free: 71.25 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.197, allocations: 43.25 kB / 0.5651 GB, free: 71.21 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002131/1.199, allocations: 0.9634 MB / 0.566 GB, free: 70.35 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.113e-06/1.199, allocations: 0 / 0.566 GB, free: 70.35 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003043/1.202, allocations: 459.2 kB / 0.5665 GB, free: 69.91 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * 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.0009383/1.203, allocations: 377.2 kB / 0.5668 GB, free: 69.6 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005202/1.209, allocations: 2.324 MB / 0.5691 GB, free: 67.42 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.209, allocations: 0 / 0.5691 GB, free: 67.42 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002929/1.212, allocations: 1.349 MB / 0.5704 GB, free: 66.13 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.215, allocations: 390.3 kB / 0.5708 GB, free: 65.84 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/1.227, allocations: 3.963 MB / 0.5747 GB, free: 62.25 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002942/1.23, allocations: 2.03 MB / 0.5767 GB, free: 60.62 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/1.231, allocations: 154.8 kB / 0.5768 GB, free: 60.48 MB / 395.1 MB Notification: Performance of SimCode: time 1.272e-06/1.231, allocations: 0 / 0.5768 GB, free: 60.48 MB / 395.1 MB Notification: Performance of Templates: time 0.3983/1.629, allocations: 78.38 MB / 0.6533 GB, free: 105.6 MB / 411.1 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/jenkins1/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