Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 115.9 kB / 17.7 MB, free: 5.309 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.0009871/0.0009871, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 47.05 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.1011, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01728/0.1184, allocations: 15.89 MB / 367.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2014/0.3198, allocations: 5.366 MB / 372.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003461/0.3233, allocations: 104.3 kB / 372.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.327, allocations: 1.117 MB / 374 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004878/0.3319, allocations: 1.351 MB / 375.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002852/0.3348, allocations: 0.9487 MB / 376.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006157/0.341, allocations: 3.978 MB / 380.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005876/0.3469, allocations: 3.613 MB / 383.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003628/0.3505, allocations: 1.879 MB / 385.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00438/0.3549, allocations: 2.282 MB / 388.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.3568, allocations: 0.5169 MB / 388.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003417/0.3602, allocations: 0.7432 MB / 389.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001832/0.362, allocations: 1.287 MB / 390.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003744/0.3658, allocations: 2.25 MB / 392.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00693/0.3728, allocations: 6.913 MB / 399.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3728, allocations: 0 / 399.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3728, allocations: 0 / 399.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001678/0.373, allocations: 0 / 399.8 MB, free: 15.36 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.01353/0.3865, allocations: 4.664 MB / 404.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.3866, allocations: 8.031 kB / 404.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003337/0.3899, allocations: 0.6704 MB / 405.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004937/0.3949, allocations: 2.527 MB / 407.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.3951, allocations: 261.5 kB / 407.9 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000516/0.3956, allocations: 347.3 kB / 408.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007283/0.4029, allocations: 4.477 MB / 412.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-05/0.403, allocations: 4 kB / 412.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/0.4033, allocations: 139.9 kB / 412.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001486/0.4034, allocations: 162.8 kB / 413 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005899/0.4094, allocations: 3.749 MB / 416.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01993/0.4293, allocations: 14.32 MB / 431.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004808/0.4341, allocations: 5.361 MB / 436.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.436, allocations: 1.269 MB / 437.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006105/0.4421, allocations: 3.815 MB / 441.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.4422, allocations: 43.88 kB / 441.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.655e-06/0.4422, allocations: 0 / 441.6 MB, free: 5.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.009716/0.4519, allocations: 5.494 MB / 447.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.452, allocations: 64.72 kB / 447.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.455, allocations: 2.106 MB / 449.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.533e-05/0.4551, allocations: 57.7 kB / 449.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/0.4563, allocations: 1.653 MB / 450.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.4566, allocations: 462 kB / 451.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00049/0.4571, allocations: 347.1 kB / 451.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4572, allocations: 301.1 kB / 452 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.4583, allocations: 0.7184 MB / 452.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4598, allocations: 1.354 MB / 454.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002615/0.4624, allocations: 2.225 MB / 456.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.4624, allocations: 4 kB / 456.3 MB, free: 5.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003735/0.4662, allocations: 2.525 MB / 458.8 MB, free: 3.402 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.4662, allocations: 12 kB / 458.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.4662, allocations: 20 kB / 458.9 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.4666, allocations: 138.9 kB / 459 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.4682, allocations: 467.2 kB / 459.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002502/0.4707, allocations: 3.356 MB / 462.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.4722, allocations: 115.8 kB / 462.9 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.4724, allocations: 84 kB / 463 MB, free: 14.95 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 (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.001713/0.4741, allocations: 1.05 MB / 464.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.4744, allocations: 217.3 kB / 464.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003399/0.4778, allocations: 2.189 MB / 466.5 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.4778, allocations: 16 kB / 466.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4778, allocations: 7.938 kB / 466.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4779, allocations: 3.984 kB / 466.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007797/0.4857, allocations: 5.18 MB / 471.7 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4857, allocations: 4 kB / 471.7 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009976/0.4867, allocations: 231.6 kB / 471.9 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006835/0.4874, allocations: 275.3 kB / 472.2 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.4875, allocations: 31.92 kB / 472.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.4939, allocations: 7.827 MB / 480 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4939, allocations: 4.031 kB / 480 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004521/0.4985, allocations: 3.184 MB / 483.2 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.4995, allocations: 454.4 kB / 483.7 MB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/0.4998, allocations: 27.98 kB / 483.7 MB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009458/0.5008, allocations: 71.92 kB / 483.8 MB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.501, allocations: 99.94 kB / 483.9 MB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-05/0.5011, allocations: 35.98 kB / 483.9 MB, free: 9.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002073/0.5031, allocations: 1.431 MB / 485.3 MB, free: 7.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5031, allocations: 0 / 485.3 MB, free: 7.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001906/0.5051, allocations: 0.5587 MB / 485.9 MB, free: 7.203 MB / 398.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 (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.0002896/0.5054, allocations: 163 kB / 486 MB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.5084, allocations: 2.113 MB / 488.2 MB, free: 4.875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5084, allocations: 4 kB / 488.2 MB, free: 4.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.5103, allocations: 1.384 MB / 489.5 MB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.5126, allocations: 0.5568 MB / 490.1 MB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.5235, allocations: 6.036 MB / 496.1 MB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/0.5258, allocations: 2.417 MB / 498.6 MB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001654/0.5274, allocations: 498.5 kB / 499 MB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003996/0.5278, allocations: 151.4 kB / 499.2 MB, free: 9.719 MB / 414.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5279, allocations: 8 kB / 499.2 MB, free: 9.711 MB / 414.1 MB Notification: Performance of Templates: time 0.04745/0.5753, allocations: 26.53 MB / 0.5134 GB, free: 15.57 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches