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.001188/0.001189, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.49/1.49, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007629/0.0007629, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002868, allocations: 11.98 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2144, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.008627/0.223, allocations: 10.23 MB / 384.8 MB, free: 37.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007274/0.2304, allocations: 3.734 MB / 388.5 MB, free: 34.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0023/0.2327, allocations: 59.12 kB / 388.6 MB, free: 34.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.2354, allocations: 0.6827 MB / 389.3 MB, free: 33.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.2395, allocations: 0.8013 MB / 390.1 MB, free: 33.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.241, allocations: 337.2 kB / 390.4 MB, free: 32.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003829/0.2448, allocations: 3.283 MB / 393.7 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.247, allocations: 2.061 MB / 395.7 MB, free: 27.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.2487, allocations: 1.117 MB / 396.9 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001597/0.2504, allocations: 1.572 MB / 398.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003029/0.2507, allocations: 168 kB / 398.6 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006766/0.2514, allocations: 247.9 kB / 398.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006214/0.252, allocations: 0.9072 MB / 399.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000577/0.2526, allocations: 0.6289 MB / 400.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.2556, allocations: 4.426 MB / 404.8 MB, free: 18.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2556, allocations: 0 / 404.8 MB, free: 18.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2556, allocations: 0 / 404.8 MB, free: 18.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001146/0.2557, allocations: 0 / 404.8 MB, free: 18.49 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.005154/0.2609, allocations: 3.229 MB / 408 MB, free: 15.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2609, allocations: 12.03 kB / 408 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008435/0.2618, allocations: 395.6 kB / 408.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002633/0.2644, allocations: 1.868 MB / 410.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.2646, allocations: 221.7 kB / 410.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003132/0.2649, allocations: 283.9 kB / 410.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005045/0.2699, allocations: 3.677 MB / 414.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.506e-05/0.27, allocations: 15.98 kB / 414.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002214/0.2702, allocations: 112 kB / 414.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.2704, allocations: 149.4 kB / 414.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004325/0.2747, allocations: 3.086 MB / 417.8 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.2911, allocations: 11.68 MB / 429.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.2934, allocations: 1.899 MB / 431.4 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.2952, allocations: 1.084 MB / 432.5 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.2955, allocations: 215.1 kB / 432.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.2956, allocations: 44.03 kB / 432.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of pre-optimization done (n=125): time 4.859e-06/0.2956, allocations: 0 / 432.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=140): time 0.01276/0.3084, allocations: 6.564 MB / 439.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.3085, allocations: 64.72 kB / 439.4 MB, free: 15.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.3114, allocations: 1.975 MB / 441.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.3115, allocations: 45.7 kB / 441.4 MB, free: 13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000992/0.3125, allocations: 1.405 MB / 442.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004315/0.313, allocations: 496.9 kB / 443.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.689e-05/0.3131, allocations: 36 kB / 443.3 MB, free: 11.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3133, allocations: 377.9 kB / 443.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.3145, allocations: 0.8081 MB / 444.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.3162, allocations: 1.375 MB / 445.9 MB, free: 8.246 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.3177, allocations: 1.041 MB / 446.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3177, allocations: 7.938 kB / 446.9 MB, free: 7.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004662/0.3224, allocations: 2.838 MB / 449.7 MB, free: 4.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.3224, allocations: 15.95 kB / 449.8 MB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.862e-05/0.3225, allocations: 20 kB / 449.8 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009175/0.3234, allocations: 399.5 kB / 450.2 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.3249, allocations: 431.3 kB / 450.6 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005713/0.3306, allocations: 6.151 MB / 456.7 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.3323, allocations: 123.8 kB / 456.9 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/0.3325, allocations: 79.98 kB / 456.9 MB, free: 12.7 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.001813/0.3343, allocations: 0.9149 MB / 457.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005565/0.3349, allocations: 205.4 kB / 458.1 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004133/0.339, allocations: 2.429 MB / 460.5 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.3391, allocations: 15.94 kB / 460.5 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.3391, allocations: 4 kB / 460.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.3391, allocations: 3.984 kB / 460.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009511/0.3486, allocations: 5.532 MB / 466 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/0.3487, allocations: 4 kB / 466 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.3498, allocations: 263.6 kB / 466.3 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009799/0.3508, allocations: 407.3 kB / 466.7 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.3509, allocations: 39.98 kB / 466.7 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006703/0.3576, allocations: 7.557 MB / 474.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.3576, allocations: 15.98 kB / 474.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/0.3629, allocations: 3.602 MB / 477.9 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.364, allocations: 478.3 kB / 478.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004987/0.3645, allocations: 32 kB / 478.4 MB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.3657, allocations: 95.88 kB / 478.5 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.3659, allocations: 101.1 kB / 478.6 MB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.946e-05/0.366, allocations: 43.98 kB / 478.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002379/0.3684, allocations: 1.346 MB / 480 MB, free: 4.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3684, allocations: 8 kB / 480 MB, free: 4.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002132/0.3706, allocations: 0.5389 MB / 480.5 MB, free: 4.199 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.0003534/0.371, allocations: 159 kB / 480.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003681/0.3746, allocations: 2.481 MB / 483.2 MB, free: 1.496 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3747, allocations: 4 kB / 483.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001991/0.3767, allocations: 1.491 MB / 484.7 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/0.3802, allocations: 0.5193 MB / 485.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.3911, allocations: 6.811 MB / 492 MB, free: 8.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/0.3935, allocations: 2.167 MB / 494.2 MB, free: 6.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006353/0.3941, allocations: 163.4 kB / 494.3 MB, free: 6.18 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3941, allocations: 0 / 494.3 MB, free: 6.18 MB / 378.7 MB Notification: Performance of Templates: time 0.2494/0.6435, allocations: 91.17 MB / 0.5718 GB, free: 29.25 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