Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 116.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 61.88 kB / 306.5 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08527, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.1656/0.2509, allocations: 16.29 MB / 373.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008394/0.2594, allocations: 5.529 MB / 378.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002528/0.2619, allocations: 103.2 kB / 378.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002921/0.2649, allocations: 0.9972 MB / 379.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003893/0.2688, allocations: 1.183 MB / 381.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.271, allocations: 0.8988 MB / 382 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005089/0.2761, allocations: 4.085 MB / 386.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003962/0.2801, allocations: 3.616 MB / 389.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.2828, allocations: 1.841 MB / 391.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003541/0.2864, allocations: 2.275 MB / 393.8 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007828/0.2872, allocations: 0.5143 MB / 394.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00189/0.2891, allocations: 0.7746 MB / 395.1 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009273/0.29, allocations: 1.285 MB / 396.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.2921, allocations: 2.261 MB / 398.6 MB, free: 168 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006601/0.2987, allocations: 6.85 MB / 405.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2987, allocations: 0 / 405.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2988, allocations: 0 / 405.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001413/0.2989, allocations: 0 / 405.5 MB, free: 11.2 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.009925/0.3088, allocations: 4.693 MB / 410.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3089, allocations: 8.031 kB / 410.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003009/0.3119, allocations: 0.6827 MB / 410.9 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004104/0.316, allocations: 2.451 MB / 413.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.3163, allocations: 263.7 kB / 413.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005272/0.3168, allocations: 354.4 kB / 413.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008111/0.3249, allocations: 4.465 MB / 418.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-05/0.325, allocations: 7.906 kB / 418.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.3254, allocations: 147.7 kB / 418.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001806/0.3256, allocations: 162.8 kB / 418.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006866/0.3325, allocations: 3.747 MB / 422.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02166/0.3541, allocations: 14.65 MB / 437.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005266/0.3594, allocations: 5.624 MB / 442.7 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002721/0.3622, allocations: 1.569 MB / 444.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006668/0.3689, allocations: 4.206 MB / 448.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.3689, allocations: 55.81 kB / 448.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 2.725e-06/0.3689, allocations: 0 / 448.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.009696/0.3786, allocations: 5.655 MB / 454.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.3787, allocations: 68.66 kB / 454.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003074/0.3818, allocations: 2.122 MB / 456.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.382, allocations: 45.7 kB / 456.4 MB, free: 6.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.3832, allocations: 1.66 MB / 458.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004552/0.3836, allocations: 464 kB / 458.6 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/0.3842, allocations: 343.1 kB / 458.9 MB, free: 4.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.235e-05/0.3843, allocations: 301.1 kB / 459.2 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.3854, allocations: 0.734 MB / 459.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.3871, allocations: 1.368 MB / 461.3 MB, free: 1.562 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/0.3901, allocations: 2.25 MB / 463.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/0.3902, allocations: 8 kB / 463.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004461/0.3946, allocations: 2.596 MB / 466.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.3947, allocations: 12 kB / 466.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/0.3947, allocations: 20 kB / 466.2 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.3952, allocations: 194.8 kB / 466.4 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.3968, allocations: 455.3 kB / 466.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003294/0.4001, allocations: 3.787 MB / 470.6 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.4019, allocations: 115.7 kB / 470.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.4021, allocations: 92.27 kB / 470.8 MB, free: 7.441 MB / 382.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 (224): * Single equations (assignments): 221 * 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,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001771/0.4038, allocations: 1.05 MB / 471.8 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.4042, allocations: 221.2 kB / 472.1 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003581/0.4078, allocations: 2.264 MB / 474.3 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.4078, allocations: 12 kB / 474.3 MB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.4078, allocations: 4 kB / 474.3 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.4078, allocations: 15.97 kB / 474.4 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007824/0.4157, allocations: 5.301 MB / 479.7 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4157, allocations: 3.984 kB / 479.7 MB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009805/0.4167, allocations: 219.7 kB / 479.9 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007856/0.4175, allocations: 327.4 kB / 480.2 MB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.693e-05/0.4176, allocations: 35.98 kB / 480.2 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006969/0.4246, allocations: 8.233 MB / 488.5 MB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4246, allocations: 384 / 488.5 MB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.4293, allocations: 3.287 MB / 491.8 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008577/0.4302, allocations: 458.3 kB / 492.2 MB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.4305, allocations: 32 kB / 492.2 MB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009655/0.4315, allocations: 75.92 kB / 492.3 MB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.4317, allocations: 97.06 kB / 492.4 MB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.557e-05/0.4318, allocations: 43.98 kB / 492.4 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001982/0.4337, allocations: 1.443 MB / 493.9 MB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4338, allocations: 0 / 493.9 MB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001851/0.4356, allocations: 0.5664 MB / 494.5 MB, free: 14.91 MB / 414.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 (109): * Single equations (assignments): 105 * 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,8,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.0003243/0.4359, allocations: 181.5 kB / 494.6 MB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004491/0.4404, allocations: 2.604 MB / 497.2 MB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4405, allocations: 0 / 497.2 MB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/0.4425, allocations: 1.416 MB / 498.7 MB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.4449, allocations: 0.5584 MB / 499.2 MB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.4558, allocations: 7.642 MB / 0.495 GB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002024/0.4578, allocations: 2.426 MB / 0.4973 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001742/0.4596, allocations: 498.6 kB / 0.4978 GB, free: 15.42 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.46, allocations: 155.4 kB / 0.498 GB, free: 15.27 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.46, allocations: 3.938 kB / 0.498 GB, free: 15.26 MB / 430.1 MB Notification: Performance of Templates: time 0.04879/0.5088, allocations: 29.14 MB / 0.5264 GB, free: 2.441 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches