Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007849/0.000785, allocations: 94.06 kB / 16.65 MB, free: 6.59 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.0008726/0.0008726, allocations: 181.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002942, allocations: 19.92 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.128, allocations: 50.41 MB / 351.9 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01786/0.1459, allocations: 14.96 MB / 366.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2541/0.4, allocations: 5.235 MB / 372 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004763/0.4048, allocations: 95.94 kB / 372.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004553/0.4094, allocations: 0.9692 MB / 373.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00613/0.4156, allocations: 1.215 MB / 374.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00287/0.4185, allocations: 0.8644 MB / 375.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00712/0.4256, allocations: 4.068 MB / 379.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005408/0.431, allocations: 3.022 MB / 382.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004334/0.4354, allocations: 1.323 MB / 383.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005121/0.4406, allocations: 1.813 MB / 385.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000832/0.4414, allocations: 203.7 kB / 385.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.4435, allocations: 438.7 kB / 386 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009484/0.4445, allocations: 0.9022 MB / 386.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002672/0.4472, allocations: 1.844 MB / 388.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007304/0.4545, allocations: 6.438 MB / 395.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4545, allocations: 0 / 395.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4546, allocations: 1.375 kB / 395.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002662/0.4548, allocations: 0 / 395.2 MB, free: 1.945 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01146/0.4663, allocations: 3.93 MB / 399.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.4663, allocations: 8.781 kB / 399.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003384/0.4697, allocations: 0.6762 MB / 399.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00459/0.4743, allocations: 2.447 MB / 402.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.4746, allocations: 267.9 kB / 402.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006038/0.4752, allocations: 349.8 kB / 402.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009974/0.4852, allocations: 4.47 MB / 407.4 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.838e-05/0.4853, allocations: 7.984 kB / 407.4 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003485/0.4857, allocations: 140 kB / 407.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.4858, allocations: 158.8 kB / 407.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00694/0.4928, allocations: 3.759 MB / 411.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02441/0.5172, allocations: 14.56 MB / 426 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006089/0.5234, allocations: 5.365 MB / 431.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/0.5254, allocations: 1.285 MB / 432.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007082/0.5325, allocations: 3.836 MB / 436.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.5326, allocations: 47.81 kB / 436.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.906e-06/0.5326, allocations: 0 / 436.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01089/0.5435, allocations: 5.52 MB / 442 MB, free: 4.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.5436, allocations: 68.72 kB / 442.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.5472, allocations: 2.102 MB / 444.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/0.5474, allocations: 53.58 kB / 444.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.5488, allocations: 1.659 MB / 445.9 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004621/0.5493, allocations: 468.8 kB / 446.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.5495, allocations: 149.6 kB / 446.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.5496, allocations: 301.1 kB / 446.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.551, allocations: 0.7184 MB / 447.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.5525, allocations: 1.357 MB / 448.9 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.5554, allocations: 2.226 MB / 451.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.5554, allocations: 8 kB / 451.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004083/0.5595, allocations: 2.533 MB / 453.6 MB, free: 7.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.5595, allocations: 12 kB / 453.7 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.5596, allocations: 27.98 kB / 453.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003778/0.56, allocations: 130.9 kB / 453.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.5616, allocations: 467.2 kB / 454.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002667/0.5643, allocations: 3.079 MB / 457.3 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.566, allocations: 111.8 kB / 457.5 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.5661, allocations: 80 kB / 457.5 MB, free: 3.758 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001947/0.5681, allocations: 1.059 MB / 458.6 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.5685, allocations: 213.3 kB / 458.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.5721, allocations: 2.2 MB / 461 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.5721, allocations: 12 kB / 461 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.5721, allocations: 4 kB / 461 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5722, allocations: 7.969 kB / 461 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008938/0.5811, allocations: 5.177 MB / 466.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.5812, allocations: 7.938 kB / 466.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009922/0.5822, allocations: 219.7 kB / 466.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007126/0.5829, allocations: 279.4 kB / 466.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.773e-05/0.583, allocations: 28 kB / 466.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006615/0.5896, allocations: 7.163 MB / 473.9 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5896, allocations: 0 / 473.9 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.5951, allocations: 3.194 MB / 477.1 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.5965, allocations: 466.4 kB / 477.5 MB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.5967, allocations: 35.94 kB / 477.6 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009986/0.5977, allocations: 71.92 kB / 477.6 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.598, allocations: 92 kB / 477.7 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.948e-05/0.5981, allocations: 35.98 kB / 477.8 MB, free: 14.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.6005, allocations: 1.431 MB / 479.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6005, allocations: 0 / 479.2 MB, free: 13.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002263/0.6027, allocations: 0.5626 MB / 479.8 MB, free: 12.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003613/0.6031, allocations: 167.4 kB / 479.9 MB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00338/0.6065, allocations: 2.102 MB / 482 MB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.6065, allocations: 4 kB / 482 MB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.6086, allocations: 1.399 MB / 483.4 MB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/0.612, allocations: 0.5101 MB / 483.9 MB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.624, allocations: 7.716 MB / 491.7 MB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.6263, allocations: 2.421 MB / 494.1 MB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001852/0.6282, allocations: 498.5 kB / 494.6 MB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000463/0.6287, allocations: 155.4 kB / 494.7 MB, free: 13.53 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.6287, allocations: 4 kB / 494.7 MB, free: 13.53 MB / 414.1 MB Notification: Performance of Templates: time 0.05382/0.6825, allocations: 27.15 MB / 0.5096 GB, free: 2.684 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches