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.001604/0.001604, allocations: 107.6 kB / 17.15 MB, free: 6.332 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.00186/0.00186, allocations: 198 kB / 18.07 MB, free: 5.434 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.418/1.418, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001225/0.001225, allocations: 51.92 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09928, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01779/0.1171, allocations: 15.63 MB / 342.2 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.1278, allocations: 5.335 MB / 347.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003124/0.131, allocations: 87.62 kB / 347.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003379/0.1344, allocations: 0.952 MB / 348.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004612/0.1391, allocations: 1.22 MB / 349.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002418/0.1415, allocations: 0.8929 MB / 350.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006181/0.1477, allocations: 4.087 MB / 354.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00439/0.1521, allocations: 2.993 MB / 357.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/0.1554, allocations: 1.572 MB / 359.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004042/0.1595, allocations: 2.121 MB / 361.5 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.1605, allocations: 312 kB / 361.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002127/0.1627, allocations: 0.5388 MB / 362.3 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.164, allocations: 1.059 MB / 363.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00329/0.1673, allocations: 2.025 MB / 365.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008203/0.1755, allocations: 6.648 MB / 372.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.1755, allocations: 4 kB / 372.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1755, allocations: 0 / 372.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002559/0.1758, allocations: 0 / 372.1 MB, free: 7.188 MB / 318.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.01408/0.1899, allocations: 4.653 MB / 376.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.19, allocations: 8.031 kB / 376.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003582/0.1936, allocations: 0.6792 MB / 377.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1524/0.3459, allocations: 2.333 MB / 379.8 MB, free: 49.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002704/0.3462, allocations: 267.3 kB / 380 MB, free: 49.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007717/0.347, allocations: 344.4 kB / 380.4 MB, free: 49.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008795/0.3558, allocations: 4.462 MB / 384.8 MB, free: 47.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.527e-05/0.3559, allocations: 9.031 kB / 384.8 MB, free: 47.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002995/0.3562, allocations: 141.6 kB / 385 MB, free: 47.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001751/0.3564, allocations: 162.7 kB / 385.1 MB, free: 47.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006868/0.3633, allocations: 3.738 MB / 388.9 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01973/0.383, allocations: 14.5 MB / 403.4 MB, free: 36.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004018/0.3871, allocations: 5.363 MB / 408.7 MB, free: 31.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.3888, allocations: 1.271 MB / 410 MB, free: 29.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005715/0.3945, allocations: 3.804 MB / 413.8 MB, free: 26.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.3946, allocations: 43.88 kB / 413.8 MB, free: 26.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 4.659e-06/0.3946, allocations: 3.984 kB / 413.8 MB, free: 26.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008843/0.4034, allocations: 5.464 MB / 419.3 MB, free: 20.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.4035, allocations: 64.72 kB / 419.4 MB, free: 20.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/0.4067, allocations: 2.102 MB / 421.5 MB, free: 18.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.4068, allocations: 53.7 kB / 421.5 MB, free: 18.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008319/0.4076, allocations: 1.652 MB / 423.2 MB, free: 16.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.4079, allocations: 468.4 kB / 423.6 MB, free: 16.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004487/0.4084, allocations: 339.1 kB / 424 MB, free: 15.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.245e-05/0.4085, allocations: 301.1 kB / 424.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.4095, allocations: 0.7159 MB / 425 MB, free: 14.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.4107, allocations: 1.361 MB / 426.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002306/0.413, allocations: 2.219 MB / 428.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.413, allocations: 4 kB / 428.6 MB, free: 10.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003462/0.4165, allocations: 2.517 MB / 431.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.4165, allocations: 16 kB / 431.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.883e-05/0.4166, allocations: 20 kB / 431.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003682/0.4169, allocations: 138.9 kB / 431.2 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.4184, allocations: 467.2 kB / 431.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.4204, allocations: 3.094 MB / 434.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.422, allocations: 107.8 kB / 434.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.4221, allocations: 84 kB / 435 MB, free: 3.77 MB / 318.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.001617/0.4238, allocations: 1.048 MB / 436 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004504/0.4242, allocations: 221.9 kB / 436.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.4277, allocations: 2.173 MB / 438.4 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.4277, allocations: 15.98 kB / 438.4 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/0.4277, allocations: 8 kB / 438.4 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.4278, allocations: 7.922 kB / 438.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00966/0.4374, allocations: 5.162 MB / 443.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.4375, allocations: 8.125 kB / 443.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.4385, allocations: 227.7 kB / 443.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007567/0.4393, allocations: 275.2 kB / 444.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.4394, allocations: 31.98 kB / 444.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.4464, allocations: 7.1 MB / 451.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.5e-05/0.4465, allocations: 4 kB / 451.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.4516, allocations: 3.179 MB / 454.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.453, allocations: 454.4 kB / 454.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006849/0.4537, allocations: 24 kB / 454.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.4551, allocations: 76.3 kB / 455 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.4554, allocations: 96.75 kB / 455.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.195e-05/0.4555, allocations: 39.98 kB / 455.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003073/0.4586, allocations: 1.423 MB / 456.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4586, allocations: 3.938 kB / 456.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003003/0.4616, allocations: 0.5672 MB / 457.1 MB, free: 12.8 MB / 350.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.0004794/0.4621, allocations: 157.9 kB / 457.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003657/0.4657, allocations: 2.092 MB / 459.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4658, allocations: 0 / 459.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.4679, allocations: 1.378 MB / 460.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002882/0.4708, allocations: 0.5222 MB / 461.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.4832, allocations: 7.615 MB / 468.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003054/0.4863, allocations: 2.406 MB / 471.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001984/0.4883, allocations: 0.4907 MB / 471.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006135/0.4889, allocations: 155.3 kB / 471.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4889, allocations: 0 / 471.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of Templates: time 0.05218/0.5411, allocations: 27.42 MB / 499.3 MB, free: 2.367 MB / 382.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/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches