Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 106.8 kB / 17.15 MB, free: 6.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 198 kB / 18.07 MB, free: 5.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.1 MB / 223.9 MB, free: 12.5 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001377, allocations: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1317, allocations: 46.64 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01379/0.1456, allocations: 11.5 MB / 338.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009621/0.1552, allocations: 3.911 MB / 342 MB, free: 5.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.1578, allocations: 59.69 kB / 342.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003444/0.1613, allocations: 0.7535 MB / 342.8 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005719/0.1671, allocations: 0.8471 MB / 343.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.1696, allocations: 479.5 kB / 344.1 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00599/0.1756, allocations: 3.613 MB / 347.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005003/0.1807, allocations: 2.521 MB / 350.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002823/0.1835, allocations: 1.331 MB / 351.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003441/0.187, allocations: 1.887 MB / 353.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007614/0.1878, allocations: 260 kB / 353.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.189, allocations: 387.8 kB / 354.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.1902, allocations: 1.048 MB / 355.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002195/0.1924, allocations: 1.698 MB / 356.9 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005056/0.1974, allocations: 5.315 MB / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1975, allocations: 0 / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1975, allocations: 0 / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000148/0.1976, allocations: 0 / 362.2 MB, free: 1.109 MB / 302.1 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.00947/0.2071, allocations: 3.806 MB / 366 MB, free: 13.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.2072, allocations: 12.03 kB / 366 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.2085, allocations: 388.6 kB / 366.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/0.2124, allocations: 1.931 MB / 368.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.2126, allocations: 218 kB / 368.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004567/0.2131, allocations: 295.8 kB / 368.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007589/0.2207, allocations: 3.701 MB / 372.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.83e-05/0.2208, allocations: 7.984 kB / 372.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/0.2211, allocations: 112 kB / 372.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001625/0.2212, allocations: 141.5 kB / 372.8 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005757/0.227, allocations: 3.106 MB / 375.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2549/0.4819, allocations: 11.65 MB / 387.5 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.4845, allocations: 1.902 MB / 389.4 MB, free: 44.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/0.4864, allocations: 1.085 MB / 390.5 MB, free: 44.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000312/0.4867, allocations: 204.9 kB / 390.7 MB, free: 44.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.4868, allocations: 45.34 kB / 390.8 MB, free: 44.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.446e-06/0.4868, allocations: 0 / 390.8 MB, free: 44.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01312/0.4999, allocations: 6.526 MB / 397.3 MB, free: 40.58 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.5, allocations: 68.53 kB / 397.4 MB, free: 40.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/0.5039, allocations: 1.991 MB / 399.3 MB, free: 39.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002256/0.5041, allocations: 52.17 kB / 399.4 MB, free: 39.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009476/0.5051, allocations: 1.408 MB / 400.8 MB, free: 38.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005528/0.5056, allocations: 486.7 kB / 401.3 MB, free: 37.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000647/0.5063, allocations: 328.2 kB / 401.6 MB, free: 37.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.38e-05/0.5064, allocations: 305.1 kB / 401.9 MB, free: 37.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.5076, allocations: 0.8162 MB / 402.7 MB, free: 36.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.5091, allocations: 1.382 MB / 404.1 MB, free: 35.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002666/0.5118, allocations: 2.361 MB / 406.5 MB, free: 34.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-05/0.5118, allocations: 2.094 kB / 406.5 MB, free: 34.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004707/0.5165, allocations: 2.865 MB / 409.3 MB, free: 31.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.5166, allocations: 12 kB / 409.3 MB, free: 31.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.408e-05/0.5166, allocations: 16 kB / 409.4 MB, free: 31.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009242/0.5175, allocations: 385.2 kB / 409.7 MB, free: 31.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/0.519, allocations: 431.3 kB / 410.2 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/0.5239, allocations: 6.153 MB / 416.3 MB, free: 24.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.5261, allocations: 123.8 kB / 416.4 MB, free: 23.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.5263, allocations: 79.98 kB / 416.5 MB, free: 23.91 MB / 318.1 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002208/0.5285, allocations: 0.9038 MB / 417.4 MB, free: 22.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007812/0.5293, allocations: 213.4 kB / 417.6 MB, free: 22.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.5333, allocations: 2.428 MB / 420 MB, free: 20.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.5333, allocations: 16 kB / 420.1 MB, free: 20.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.5333, allocations: 4 kB / 420.1 MB, free: 20.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.5334, allocations: 7.969 kB / 420.1 MB, free: 20.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009894/0.5432, allocations: 5.533 MB / 425.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.5433, allocations: 4 kB / 425.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009737/0.5443, allocations: 259.6 kB / 425.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008906/0.5452, allocations: 399.5 kB / 426.3 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.5453, allocations: 35.98 kB / 426.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005226/0.5506, allocations: 7.581 MB / 433.9 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.5506, allocations: 11.88 kB / 433.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/0.5552, allocations: 3.616 MB / 437.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.5564, allocations: 466.4 kB / 438 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006798/0.5571, allocations: 35.98 kB / 438 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.5584, allocations: 83.89 kB / 438.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.5586, allocations: 113 kB / 438.2 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.855e-05/0.5587, allocations: 36 kB / 438.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002206/0.5609, allocations: 1.362 MB / 439.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5609, allocations: 0 / 439.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002789/0.5637, allocations: 0.5321 MB / 440.1 MB, free: 15.45 MB / 334.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005289/0.5642, allocations: 205.2 kB / 440.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003991/0.5682, allocations: 2.478 MB / 442.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5683, allocations: 4.312 kB / 442.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.5703, allocations: 1.497 MB / 444.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002812/0.5731, allocations: 0.5044 MB / 444.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.5853, allocations: 6.973 MB / 451.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002881/0.5882, allocations: 2.201 MB / 454 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002361/0.5906, allocations: 0.5017 MB / 454.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008256/0.5915, allocations: 151.4 kB / 454.6 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of SimCode: time 2.003e-06/0.5915, allocations: 0 / 454.6 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of Templates: time 0.06449/0.656, allocations: 28.46 MB / 483.1 MB, free: 4.23 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches