Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 109.4 kB / 18.4 MB, free: 4.699 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.001235/0.001235, allocations: 185.3 kB / 19.33 MB, free: 3.777 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.442/1.442, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001739/0.001739, allocations: 51.92 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09154, allocations: 46.62 MB / 375.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.2265/0.3181, allocations: 15.83 MB / 391.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01359/0.3317, allocations: 5.393 MB / 397.1 MB, free: 212 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00459/0.3364, allocations: 92.47 kB / 397.2 MB, free: 188 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004809/0.3413, allocations: 1.116 MB / 398.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007514/0.3488, allocations: 1.351 MB / 399.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003803/0.3527, allocations: 0.9659 MB / 400.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006874/0.3596, allocations: 3.973 MB / 404.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006767/0.3663, allocations: 3.55 MB / 408.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003789/0.3702, allocations: 1.883 MB / 410 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005222/0.3754, allocations: 2.278 MB / 412.3 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001944/0.3774, allocations: 0.5154 MB / 412.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.3809, allocations: 0.7366 MB / 413.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002546/0.3834, allocations: 1.283 MB / 414.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005995/0.3895, allocations: 2.253 MB / 417.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.4004, allocations: 6.89 MB / 424 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.4004, allocations: 4 kB / 424 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4004, allocations: 0 / 424 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002612/0.4007, allocations: 0 / 424 MB, free: 15.45 MB / 350.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.01398/0.4147, allocations: 4.654 MB / 428.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4147, allocations: 15.97 kB / 428.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003959/0.4187, allocations: 0.6753 MB / 429.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005221/0.4239, allocations: 2.377 MB / 431.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.4242, allocations: 259.3 kB / 431.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006334/0.4248, allocations: 340.3 kB / 432.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007632/0.4324, allocations: 4.468 MB / 436.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.192e-05/0.4325, allocations: 8 kB / 436.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.4328, allocations: 136 kB / 436.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/0.433, allocations: 162.8 kB / 437 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006515/0.4395, allocations: 3.743 MB / 440.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02487/0.4644, allocations: 14.32 MB / 455.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/0.4697, allocations: 5.357 MB / 460.4 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/0.4717, allocations: 1.259 MB / 461.7 MB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007077/0.4788, allocations: 3.785 MB / 465.5 MB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4788, allocations: 51.81 kB / 465.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.246e-06/0.4789, allocations: 0 / 465.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01022/0.4891, allocations: 5.467 MB / 471 MB, free: 14.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.4892, allocations: 64.72 kB / 471.1 MB, free: 14.72 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003217/0.4924, allocations: 2.098 MB / 473.2 MB, free: 12.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.4925, allocations: 49.7 kB / 473.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.4937, allocations: 1.661 MB / 474.9 MB, free: 10.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.4941, allocations: 457.4 kB / 475.3 MB, free: 10.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004947/0.4946, allocations: 331.2 kB / 475.7 MB, free: 10.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4947, allocations: 309 kB / 476 MB, free: 9.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.4958, allocations: 0.7145 MB / 476.7 MB, free: 9.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.4973, allocations: 1.357 MB / 478 MB, free: 7.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00269/0.5, allocations: 2.227 MB / 480.3 MB, free: 4.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5001, allocations: 8 kB / 480.3 MB, free: 4.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00391/0.504, allocations: 2.513 MB / 482.8 MB, free: 2.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.504, allocations: 16 kB / 482.8 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.5041, allocations: 27.94 kB / 482.8 MB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003827/0.5045, allocations: 143 kB / 483 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.5061, allocations: 463.3 kB / 483.4 MB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.5087, allocations: 3.36 MB / 486.8 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.5103, allocations: 107.9 kB / 486.9 MB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.5104, allocations: 87.98 kB / 487 MB, free: 13.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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.001931/0.5124, allocations: 1.044 MB / 488 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004086/0.5128, allocations: 213.3 kB / 488.2 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004527/0.5173, allocations: 2.177 MB / 490.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.5173, allocations: 16 kB / 490.4 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.5174, allocations: 4 kB / 490.4 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.5174, allocations: 15.91 kB / 490.4 MB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008936/0.5263, allocations: 5.156 MB / 495.6 MB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.5264, allocations: 0 / 495.6 MB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009964/0.5274, allocations: 227.7 kB / 495.8 MB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007241/0.5281, allocations: 279.5 kB / 496.1 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-05/0.5282, allocations: 24 kB / 496.1 MB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00697/0.5352, allocations: 7.806 MB / 0.4921 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.5352, allocations: 3.938 kB / 0.4921 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.5401, allocations: 3.189 MB / 0.4952 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.5414, allocations: 450.4 kB / 0.4956 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006719/0.5421, allocations: 28 kB / 0.4957 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.5434, allocations: 71.92 kB / 0.4957 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.5437, allocations: 100.7 kB / 0.4958 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.865e-05/0.5438, allocations: 32 kB / 0.4959 GB, free: 8.152 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002845/0.5466, allocations: 1.435 MB / 0.4973 GB, free: 6.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5466, allocations: 0 / 0.4973 GB, free: 6.699 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002697/0.5493, allocations: 0.5508 MB / 0.4978 GB, free: 6.148 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (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.0004084/0.5498, allocations: 167.1 kB / 0.498 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.5533, allocations: 2.106 MB / 0.5 GB, free: 3.824 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.5533, allocations: 0 / 0.5 GB, free: 3.824 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.5554, allocations: 1.383 MB / 0.5014 GB, free: 2.391 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/0.5584, allocations: 0.5515 MB / 0.5019 GB, free: 1.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.5703, allocations: 6.08 MB / 0.5078 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00283/0.5731, allocations: 2.357 MB / 0.5101 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007085/0.5739, allocations: 167.4 kB / 0.5103 GB, free: 9.141 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5739, allocations: 7.938 kB / 0.5103 GB, free: 9.133 MB / 446.1 MB Notification: Performance of Templates: time 0.3192/0.8931, allocations: 100.4 MB / 0.6083 GB, free: 112.4 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches