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.0009537/0.0009536, allocations: 96.94 kB / 17.3 MB, free: 6.344 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.0009943/0.0009944, allocations: 179.4 kB / 18.21 MB, free: 5.531 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.779/1.779, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0005219/0.0005221, allocations: 12 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.131, allocations: 47.59 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01424/0.1453, allocations: 10.91 MB / 339.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.1565, allocations: 3.868 MB / 343.8 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003398/0.16, allocations: 59.69 kB / 343.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003073/0.1631, allocations: 0.7496 MB / 344.6 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004904/0.168, allocations: 0.8549 MB / 345.4 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.1696, allocations: 471.5 kB / 345.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006116/0.1757, allocations: 3.601 MB / 349.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003486/0.1792, allocations: 2.498 MB / 352 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002888/0.1821, allocations: 1.124 MB / 353.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004291/0.1864, allocations: 1.63 MB / 354.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006359/0.1871, allocations: 172 kB / 354.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.1885, allocations: 295.8 kB / 355.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.1899, allocations: 0.9148 MB / 356.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003073/0.193, allocations: 1.552 MB / 357.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007315/0.2003, allocations: 5.134 MB / 362.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/0.2004, allocations: 0 / 362.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.157e-06/0.2004, allocations: 4 kB / 362.8 MB, free: 1.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002585/0.2007, allocations: 0 / 362.8 MB, free: 1.742 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.01059/0.2113, allocations: 3.19 MB / 366 MB, free: 14.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.377e-05/0.2114, allocations: 12.03 kB / 366 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003093/0.2145, allocations: 396.6 kB / 366.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005816/0.2203, allocations: 1.927 MB / 368.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.2206, allocations: 233.9 kB / 368.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005293/0.2212, allocations: 287.9 kB / 368.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007077/0.2283, allocations: 3.693 MB / 372.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-05/0.2284, allocations: 15.92 kB / 372.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002695/0.2287, allocations: 116 kB / 372.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/0.2288, allocations: 141.5 kB / 372.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005681/0.2345, allocations: 3.109 MB / 375.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.306/0.5405, allocations: 11.69 MB / 387.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.5439, allocations: 1.901 MB / 389.5 MB, free: 44.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002399/0.5463, allocations: 1.094 MB / 390.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003605/0.5467, allocations: 209.3 kB / 390.8 MB, free: 43.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/0.5467, allocations: 46.58 kB / 390.8 MB, free: 43.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 5.871e-06/0.5468, allocations: 0 / 390.8 MB, free: 43.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01497/0.5617, allocations: 6.571 MB / 397.4 MB, free: 40.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.5618, allocations: 64.44 kB / 397.5 MB, free: 40.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00315/0.565, allocations: 1.989 MB / 399.4 MB, free: 39.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.5652, allocations: 53.58 kB / 399.5 MB, free: 39.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008579/0.5661, allocations: 1.404 MB / 400.9 MB, free: 38.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.5664, allocations: 495 kB / 401.4 MB, free: 37.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.5666, allocations: 142.6 kB / 401.5 MB, free: 37.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.5667, allocations: 306.6 kB / 401.8 MB, free: 37.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.5679, allocations: 0.8212 MB / 402.6 MB, free: 37.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.5693, allocations: 1.378 MB / 404 MB, free: 36.01 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002714/0.572, allocations: 2.366 MB / 406.4 MB, free: 34.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.5721, allocations: 3.438 kB / 406.4 MB, free: 34.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004463/0.5765, allocations: 2.859 MB / 409.3 MB, free: 32.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.5766, allocations: 19.94 kB / 409.3 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.5766, allocations: 16 kB / 409.3 MB, free: 32.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008264/0.5774, allocations: 391.6 kB / 409.7 MB, free: 31.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.5789, allocations: 431.3 kB / 410.1 MB, free: 31.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004588/0.5835, allocations: 6.15 MB / 416.2 MB, free: 25.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.5855, allocations: 131.8 kB / 416.4 MB, free: 24.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.5856, allocations: 79.98 kB / 416.4 MB, free: 24.81 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.001936/0.5876, allocations: 0.9188 MB / 417.4 MB, free: 23.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004293/0.588, allocations: 205.4 kB / 417.6 MB, free: 23.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.5918, allocations: 2.422 MB / 420 MB, free: 21.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.5918, allocations: 23.92 kB / 420 MB, free: 21.2 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.5918, allocations: 4 kB / 420 MB, free: 21.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5918, allocations: 3.984 kB / 420 MB, free: 21.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007976/0.5998, allocations: 5.534 MB / 425.6 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.5998, allocations: 8.094 kB / 425.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.6009, allocations: 263.6 kB / 425.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008577/0.6017, allocations: 397.9 kB / 426.2 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.6018, allocations: 35.98 kB / 426.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00512/0.6069, allocations: 7.59 MB / 433.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.607, allocations: 7.938 kB / 433.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.6118, allocations: 3.61 MB / 437.5 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009838/0.6128, allocations: 482.4 kB / 437.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.613, allocations: 39.92 kB / 438 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009784/0.614, allocations: 91.89 kB / 438.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.6142, allocations: 101.1 kB / 438.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.499e-05/0.6143, allocations: 47.98 kB / 438.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00191/0.6162, allocations: 1.357 MB / 439.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6162, allocations: 0 / 439.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002264/0.6185, allocations: 0.5352 MB / 440.1 MB, free: 324 kB / 318.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.0004304/0.619, allocations: 192.1 kB / 440.3 MB, free: 128 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004136/0.6231, allocations: 2.502 MB / 442.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.6231, allocations: 0 / 442.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002109/0.6252, allocations: 1.495 MB / 444.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.6289, allocations: 0.5138 MB / 444.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.641, allocations: 7.092 MB / 451.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.6433, allocations: 2.201 MB / 454.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00206/0.6453, allocations: 0.4901 MB / 454.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004505/0.6458, allocations: 159.4 kB / 454.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of SimCode: time 2.314e-06/0.6458, allocations: 0 / 454.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of Templates: time 0.05691/0.7027, allocations: 28.04 MB / 482.8 MB, free: 5.395 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