Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 178 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.46/1.46, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001152/0.001152, allocations: 89.06 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.0003479, allocations: 8 kB / 327 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2098, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01165/0.2215, allocations: 13.9 MB / 388.5 MB, free: 34.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.2297, allocations: 5.015 MB / 393.5 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.2316, allocations: 95.56 kB / 393.6 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002018/0.2336, allocations: 0.8426 MB / 394.4 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.2367, allocations: 1.092 MB / 395.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.2383, allocations: 0.6587 MB / 396.2 MB, free: 27.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002943/0.2412, allocations: 3.828 MB / 400 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.2434, allocations: 2.532 MB / 402.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.2446, allocations: 1.299 MB / 403.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.2461, allocations: 1.735 MB / 405.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003261/0.2464, allocations: 208 kB / 405.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008645/0.2473, allocations: 411.8 kB / 406.2 MB, free: 17.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005197/0.2478, allocations: 0.8914 MB / 407.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.2484, allocations: 0.7575 MB / 407.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003341/0.2517, allocations: 5.571 MB / 413.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.2517, allocations: 0 / 413.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2517, allocations: 0 / 413.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001252/0.2519, allocations: 0 / 413.4 MB, free: 9.855 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007368/0.2592, allocations: 3.96 MB / 417.4 MB, free: 5.824 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2593, allocations: 11.97 kB / 417.4 MB, free: 5.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00296/0.2623, allocations: 0.6745 MB / 418 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/0.2659, allocations: 2.272 MB / 420.3 MB, free: 2.809 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.2661, allocations: 262.9 kB / 420.6 MB, free: 2.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004673/0.2666, allocations: 351.8 kB / 420.9 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00799/0.2746, allocations: 4.429 MB / 425.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/0.2747, allocations: 11.98 kB / 425.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003036/0.275, allocations: 140 kB / 425.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.2751, allocations: 166.7 kB / 425.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005994/0.2811, allocations: 3.712 MB / 429.4 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02032/0.3015, allocations: 14.55 MB / 443.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/0.3065, allocations: 5.357 MB / 449.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/0.3086, allocations: 1.289 MB / 450.6 MB, free: 3.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006314/0.3149, allocations: 3.815 MB / 454.4 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.315, allocations: 51.81 kB / 454.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 2.886e-06/0.315, allocations: 0 / 454.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.009328/0.3243, allocations: 5.502 MB / 459.9 MB, free: 9.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.3244, allocations: 64.72 kB / 460 MB, free: 9.648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/0.3271, allocations: 2.094 MB / 462.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-05/0.3272, allocations: 45.7 kB / 462.1 MB, free: 7.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.3282, allocations: 1.653 MB / 463.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/0.3285, allocations: 465.5 kB / 464.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.3286, allocations: 36 kB / 464.3 MB, free: 5.301 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3288, allocations: 373.9 kB / 464.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.3298, allocations: 0.7106 MB / 465.3 MB, free: 4.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.3313, allocations: 1.353 MB / 466.7 MB, free: 2.578 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.3327, allocations: 0.9472 MB / 467.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3327, allocations: 4 kB / 467.7 MB, free: 1.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003441/0.3361, allocations: 2.506 MB / 470.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.3362, allocations: 16.5 kB / 470.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.3362, allocations: 20 kB / 470.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003431/0.3365, allocations: 146.4 kB / 470.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.3381, allocations: 463.3 kB / 470.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.3404, allocations: 3.079 MB / 473.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.3416, allocations: 115.8 kB / 474 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.3417, allocations: 84 kB / 474.1 MB, free: 10.9 MB / 362.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.3433, allocations: 1.055 MB / 475.1 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/0.3436, allocations: 217.3 kB / 475.3 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003248/0.3468, allocations: 2.165 MB / 477.5 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3468, allocations: 12 kB / 477.5 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3469, allocations: 11.94 kB / 477.5 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.3469, allocations: 11.92 kB / 477.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007059/0.3539, allocations: 5.153 MB / 482.7 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.354, allocations: 4.281 kB / 482.7 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009963/0.355, allocations: 235.6 kB / 482.9 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00067/0.3557, allocations: 275.2 kB / 483.2 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.573e-05/0.3557, allocations: 27.98 kB / 483.2 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005815/0.3616, allocations: 7.104 MB / 490.3 MB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3616, allocations: 4.156 kB / 490.3 MB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/0.366, allocations: 3.175 MB / 493.5 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008238/0.3668, allocations: 466.4 kB / 494 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.367, allocations: 31.94 kB / 494 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009118/0.368, allocations: 71.92 kB / 494.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.3681, allocations: 88.81 kB / 494.1 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/0.3682, allocations: 47.98 kB / 494.2 MB, free: 5.891 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00195/0.3702, allocations: 1.411 MB / 495.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3702, allocations: 0 / 495.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001742/0.3719, allocations: 0.5547 MB / 496.2 MB, free: 3.906 MB / 378.7 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 (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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002896/0.3722, allocations: 174 kB / 496.3 MB, free: 3.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002943/0.3752, allocations: 2.084 MB / 498.4 MB, free: 1.598 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3752, allocations: 3.938 kB / 498.4 MB, free: 1.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.377, allocations: 1.369 MB / 499.8 MB, free: 176 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/0.3792, allocations: 0.5275 MB / 0.4886 GB, free: 15.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/0.3888, allocations: 7.373 MB / 0.4958 GB, free: 8.219 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/0.3909, allocations: 2.365 MB / 0.4981 GB, free: 5.824 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006436/0.3916, allocations: 171.4 kB / 0.4983 GB, free: 5.656 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3916, allocations: 0 / 0.4983 GB, free: 5.656 MB / 394.7 MB Notification: Performance of Templates: time 0.2198/0.6114, allocations: 99.18 MB / 0.5951 GB, free: 35.56 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches