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.002874/0.00288, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.649/3.649, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001725/0.001725, allocations: 95.39 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006455/0.0006457, allocations: 12 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6381/0.6388, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.02383/0.6627, allocations: 9.46 MB / 384 MB, free: 38.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01554/0.6784, allocations: 3.819 MB / 387.8 MB, free: 35.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003856/0.6823, allocations: 57.81 kB / 387.9 MB, free: 35.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004951/0.6873, allocations: 0.7266 MB / 388.6 MB, free: 34.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007378/0.6948, allocations: 0.8485 MB / 389.4 MB, free: 33.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003334/0.6982, allocations: 350.5 kB / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008327/0.7065, allocations: 2.125 MB / 391.9 MB, free: 31.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006559/0.7132, allocations: 2.068 MB / 394 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.7169, allocations: 1.035 MB / 395 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004945/0.7219, allocations: 1.389 MB / 396.4 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00163/0.7236, allocations: 168 kB / 396.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.7266, allocations: 247.8 kB / 396.8 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002709/0.7293, allocations: 0.8684 MB / 397.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002496/0.7319, allocations: 0.6211 MB / 398.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.7421, allocations: 4.379 MB / 402.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.852e-06/0.7421, allocations: 0 / 402.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.881e-06/0.7422, allocations: 4 kB / 402.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002362/0.7424, allocations: 0 / 402.7 MB, free: 20.6 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.01586/0.7583, allocations: 3.206 MB / 405.9 MB, free: 17.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.363e-05/0.7584, allocations: 12.03 kB / 405.9 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003235/0.7617, allocations: 395.6 kB / 406.3 MB, free: 16.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008622/0.7703, allocations: 1.884 MB / 408.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004909/0.7709, allocations: 221.7 kB / 408.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001741/0.7727, allocations: 283.9 kB / 408.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01901/0.7917, allocations: 3.658 MB / 412.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002743/0.7921, allocations: 11.91 kB / 412.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001422/0.7935, allocations: 116 kB / 412.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002829/0.7939, allocations: 145.4 kB / 412.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01421/0.8081, allocations: 3.086 MB / 415.7 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05004/0.8582, allocations: 11.63 MB / 427.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00623/0.8645, allocations: 1.903 MB / 429.2 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006732/0.8653, allocations: 203.1 kB / 429.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.83e-05/0.8654, allocations: 55.52 kB / 429.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of pre-optimization done (n=125): time 2.627e-05/0.8654, allocations: 0 / 429.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of matching and sorting (n=143): time 0.03828/0.9037, allocations: 7.245 MB / 436.7 MB, free: 1.758 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.9038, allocations: 72.7 kB / 436.8 MB, free: 1.672 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007136/0.911, allocations: 1.924 MB / 438.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004451/0.9115, allocations: 45.7 kB / 438.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002166/0.9137, allocations: 1.329 MB / 440.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/0.915, allocations: 0.4929 MB / 440.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002624/0.9153, allocations: 36 kB / 440.6 MB, free: 13.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003506/0.9156, allocations: 386.7 kB / 441 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003673/0.9193, allocations: 0.855 MB / 441.8 MB, free: 12.53 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.9239, allocations: 1.408 MB / 443.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004511/0.9285, allocations: 1.084 MB / 444.3 MB, free: 9.801 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-05/0.9286, allocations: 8 kB / 444.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01286/0.9415, allocations: 2.834 MB / 447.2 MB, free: 6.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.781e-05/0.9416, allocations: 13.72 kB / 447.2 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.378e-05/0.9417, allocations: 16 kB / 447.2 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003271/0.945, allocations: 0.5159 MB / 447.7 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004546/0.9496, allocations: 435.3 kB / 448.1 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01746/0.9671, allocations: 6.052 MB / 454.2 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003937/0.9711, allocations: 131.7 kB / 454.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005816/0.9718, allocations: 83.98 kB / 454.4 MB, free: 15.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (208): * Single equations (assignments): 205 * 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%) 17,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003986/0.9758, allocations: 0.9109 MB / 455.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/0.9768, allocations: 205.5 kB / 455.5 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01154/0.9884, allocations: 2.547 MB / 458.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-05/0.9885, allocations: 16 kB / 458.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/0.9885, allocations: 8 kB / 458.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.395e-05/0.9886, allocations: 3.984 kB / 458.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02451/1.013, allocations: 5.563 MB / 463.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.42e-05/1.013, allocations: 0 / 463.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/1.016, allocations: 251.6 kB / 463.9 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003677/1.02, allocations: 0.5335 MB / 464.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004238/1.021, allocations: 31.98 kB / 464.5 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/1.041, allocations: 7.564 MB / 472 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/1.041, allocations: 0 / 472 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/1.056, allocations: 3.883 MB / 475.9 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/1.059, allocations: 474.3 kB / 476.4 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009287/1.06, allocations: 35.98 kB / 476.4 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003135/1.063, allocations: 103.8 kB / 476.5 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007155/1.064, allocations: 93.12 kB / 476.6 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.064, allocations: 39.98 kB / 476.6 MB, free: 8.484 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005343/1.069, allocations: 1.31 MB / 477.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.07, allocations: 4 kB / 477.9 MB, free: 7.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004948/1.074, allocations: 0.5548 MB / 478.5 MB, free: 6.594 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (123): * Single equations (assignments): 120 * 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%) 17,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008651/1.075, allocations: 161 kB / 478.7 MB, free: 6.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009735/1.085, allocations: 2.543 MB / 481.2 MB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.437e-05/1.085, allocations: 0 / 481.2 MB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005894/1.091, allocations: 1.514 MB / 482.7 MB, free: 2.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00575/1.097, allocations: 499.2 kB / 483.2 MB, free: 1.809 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/1.121, allocations: 6.812 MB / 490 MB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006061/1.127, allocations: 2.24 MB / 492.3 MB, free: 8.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/1.129, allocations: 163.4 kB / 492.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of SimCode: time 1.864e-06/1.129, allocations: 0 / 492.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of Templates: time 0.6816/1.811, allocations: 73.57 MB / 0.5527 GB, free: 51.13 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/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