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.001468/0.001468, allocations: 113.3 kB / 17.28 MB, free: 6.047 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.001756/0.001756, allocations: 193.3 kB / 18.19 MB, free: 5.164 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.403/1.403, allocations: 205.1 MB / 224.1 MB, free: 12.47 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.001322/0.001322, allocations: 47.94 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01726/0.1229, allocations: 15.63 MB / 342.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.1337, allocations: 5.3 MB / 347.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003954/0.1378, allocations: 87.62 kB / 347.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003595/0.1414, allocations: 0.9793 MB / 348.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004905/0.1464, allocations: 1.216 MB / 350 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002421/0.1488, allocations: 0.8617 MB / 350.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005157/0.154, allocations: 4.033 MB / 354.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003661/0.1577, allocations: 3.556 MB / 358.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.1599, allocations: 1.822 MB / 360.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.1623, allocations: 2.265 MB / 362.5 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005973/0.1629, allocations: 0.5156 MB / 363.1 MB, free: 328 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001234/0.1641, allocations: 0.7458 MB / 363.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1652, allocations: 1.286 MB / 365.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002417/0.1676, allocations: 2.248 MB / 367.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00721/0.1748, allocations: 6.808 MB / 374.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1749, allocations: 0 / 374.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1749, allocations: 0 / 374.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002627/0.1752, allocations: 0 / 374.1 MB, free: 5.199 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.01194/0.1871, allocations: 4.65 MB / 378.8 MB, free: 488 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.1872, allocations: 8.031 kB / 378.8 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.185/0.3722, allocations: 0.668 MB / 379.5 MB, free: 49.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006358/0.3786, allocations: 2.34 MB / 381.8 MB, free: 49.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006084/0.3792, allocations: 269.7 kB / 382.1 MB, free: 48.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/0.3805, allocations: 342.6 kB / 382.4 MB, free: 48.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.3915, allocations: 4.459 MB / 386.9 MB, free: 47.06 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.3916, allocations: 8.094 kB / 386.9 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005368/0.3922, allocations: 144.2 kB / 387 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001925/0.3924, allocations: 163.9 kB / 387.2 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008303/0.4007, allocations: 3.733 MB / 390.9 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02776/0.4285, allocations: 14.49 MB / 405.4 MB, free: 35.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004547/0.4331, allocations: 5.376 MB / 410.8 MB, free: 29.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.435, allocations: 1.274 MB / 412.1 MB, free: 28.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007297/0.4423, allocations: 3.798 MB / 415.8 MB, free: 24.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.762e-05/0.4424, allocations: 43.88 kB / 415.9 MB, free: 24.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 4.789e-06/0.4425, allocations: 0 / 415.9 MB, free: 24.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01059/0.4531, allocations: 5.471 MB / 421.4 MB, free: 18.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.4531, allocations: 64.72 kB / 421.4 MB, free: 18.63 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004304/0.4575, allocations: 2.1 MB / 423.5 MB, free: 16.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.4576, allocations: 45.7 kB / 423.6 MB, free: 16.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.4587, allocations: 1.66 MB / 425.2 MB, free: 14.78 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003458/0.4591, allocations: 468.7 kB / 425.7 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004989/0.4596, allocations: 339.2 kB / 426 MB, free: 13.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.152e-05/0.4597, allocations: 301.1 kB / 426.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.4607, allocations: 0.7144 MB / 427 MB, free: 12.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.4619, allocations: 1.353 MB / 428.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.4642, allocations: 2.227 MB / 430.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.951e-05/0.4643, allocations: 8 kB / 430.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003689/0.468, allocations: 2.517 MB / 433.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.468, allocations: 12 kB / 433.1 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.518e-05/0.4681, allocations: 20 kB / 433.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004215/0.4685, allocations: 150.7 kB / 433.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.4701, allocations: 463.2 kB / 433.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.4723, allocations: 3.349 MB / 437.1 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/0.4746, allocations: 115.7 kB / 437.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.4748, allocations: 87.92 kB / 437.3 MB, free: 1.801 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.002207/0.477, allocations: 1.052 MB / 438.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.478, allocations: 209.4 kB / 438.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005016/0.483, allocations: 2.181 MB / 440.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.4831, allocations: 12 kB / 440.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/0.4831, allocations: 7.969 kB / 440.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.4831, allocations: 11.97 kB / 440.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.4939, allocations: 5.169 MB / 445.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.4939, allocations: 4 kB / 446 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.4949, allocations: 231.9 kB / 446.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007329/0.4957, allocations: 271.2 kB / 446.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.4958, allocations: 31.98 kB / 446.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006768/0.5026, allocations: 7.798 MB / 454.3 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.5026, allocations: 3.984 kB / 454.3 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/0.5077, allocations: 3.179 MB / 457.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.509, allocations: 446.4 kB / 457.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006722/0.5097, allocations: 32 kB / 457.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.5111, allocations: 71.92 kB / 458 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.5113, allocations: 92.75 kB / 458.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.279e-05/0.5114, allocations: 39.98 kB / 458.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002575/0.514, allocations: 1.431 MB / 459.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.514, allocations: 0 / 459.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002471/0.5165, allocations: 0.5578 MB / 460.1 MB, free: 10.12 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.0003915/0.5169, allocations: 163.6 kB / 460.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005061/0.522, allocations: 2.564 MB / 462.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.522, allocations: 4.062 kB / 462.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/0.5241, allocations: 1.378 MB / 464.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.5271, allocations: 0.5577 MB / 464.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.5416, allocations: 7.607 MB / 472.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003379/0.545, allocations: 2.42 MB / 474.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002256/0.5473, allocations: 0.4907 MB / 475.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007402/0.5481, allocations: 151.4 kB / 475.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of SimCode: time 2.786e-06/0.5481, allocations: 0 / 475.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of Templates: time 0.05783/0.6059, allocations: 28.45 MB / 0.4921 GB, free: 14.16 MB / 398.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