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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 196.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000811/0.0008111, allocations: 88.91 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.651e-05/1.653e-05, allocations: 7.984 kB / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3929/0.4951, allocations: 120.1 MB / 0.5033 GB, free: 5.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.4954, allocations: 93.75 kB / 0.5033 GB, free: 5.684 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5389/1.034, allocations: 82.33 MB / 0.5838 GB, free: 73.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.034, allocations: 3.031 kB / 0.5838 GB, free: 73.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000357/1.035, allocations: 102.4 kB / 0.5839 GB, free: 73.26 MB / 442.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.009593/1.044, allocations: 3.476 MB / 0.5872 GB, free: 72.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/1.044, allocations: 11.5 kB / 0.5873 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/1.048, allocations: 0.6476 MB / 0.5879 GB, free: 71.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007458/1.055, allocations: 3.384 MB / 0.5912 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/1.055, allocations: 110 kB / 0.5913 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007374/1.056, allocations: 210.3 kB / 0.5915 GB, free: 71.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005782/1.062, allocations: 3.2 MB / 0.5946 GB, free: 71.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006044/1.068, allocations: 3.822 MB / 0.5984 GB, free: 70.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.33e-05/1.068, allocations: 7.844 kB / 0.5984 GB, free: 70.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002601/1.068, allocations: 3.312 kB / 0.5984 GB, free: 70.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/1.068, allocations: 161.8 kB / 0.5985 GB, free: 70.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01725/1.086, allocations: 14.08 MB / 0.6123 GB, free: 67.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004256/1.09, allocations: 5.605 MB / 0.6177 GB, free: 63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/1.093, allocations: 1.536 MB / 0.6192 GB, free: 62.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007156/1.1, allocations: 4.251 MB / 0.6234 GB, free: 62.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/1.1, allocations: 46.75 kB / 0.6234 GB, free: 61.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.627e-06/1.1, allocations: 0.9375 kB / 0.6234 GB, free: 61.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=137): time 0.01102/1.111, allocations: 4.575 MB / 0.6279 GB, free: 60.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/1.111, allocations: 67 kB / 0.628 GB, free: 60.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00363/1.115, allocations: 1.557 MB / 0.6295 GB, free: 59.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.961e-05/1.115, allocations: 26.67 kB / 0.6295 GB, free: 59.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/1.116, allocations: 1.658 MB / 0.6311 GB, free: 58.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004439/1.117, allocations: 468.4 kB / 0.6316 GB, free: 57.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.813e-05/1.117, allocations: 0 / 0.6316 GB, free: 57.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/1.117, allocations: 375.3 kB / 0.6319 GB, free: 57.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/1.118, allocations: 0.6925 MB / 0.6326 GB, free: 57.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/1.12, allocations: 1.284 MB / 0.6339 GB, free: 56.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/1.122, allocations: 1.051 MB / 0.6349 GB, free: 55.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/1.122, allocations: 6.531 kB / 0.6349 GB, free: 55.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004415/1.126, allocations: 2.489 MB / 0.6373 GB, free: 54.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/1.126, allocations: 13.38 kB / 0.6374 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/1.126, allocations: 19.66 kB / 0.6374 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004686/1.127, allocations: 189.8 kB / 0.6375 GB, free: 54.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/1.128, allocations: 472.2 kB / 0.638 GB, free: 54.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/1.131, allocations: 3.366 MB / 0.6413 GB, free: 51.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/1.132, allocations: 80.09 kB / 0.6414 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/1.132, allocations: 85.81 kB / 0.6414 GB, free: 51.78 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002501/1.133, allocations: 169.5 kB / 0.6416 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/1.133, allocations: 202.5 kB / 0.6418 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003545/1.137, allocations: 2.268 MB / 0.644 GB, free: 50.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/1.137, allocations: 13.38 kB / 0.644 GB, free: 50.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.137, allocations: 3.5 kB / 0.644 GB, free: 50.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/1.137, allocations: 7.547 kB / 0.644 GB, free: 50.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007311/1.144, allocations: 4.934 MB / 0.6489 GB, free: 48.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/1.144, allocations: 0 / 0.6489 GB, free: 48.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009487/1.145, allocations: 245.3 kB / 0.6491 GB, free: 48.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006846/1.146, allocations: 315.2 kB / 0.6494 GB, free: 48.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-05/1.146, allocations: 16.97 kB / 0.6494 GB, free: 48.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004956/1.151, allocations: 7.241 MB / 0.6565 GB, free: 42.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.151, allocations: 7.969 kB / 0.6565 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004626/1.155, allocations: 3.472 MB / 0.6599 GB, free: 40.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/1.156, allocations: 452.8 kB / 0.6603 GB, free: 39.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/1.157, allocations: 13.77 kB / 0.6603 GB, free: 39.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009274/1.158, allocations: 67.2 kB / 0.6604 GB, free: 39.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/1.158, allocations: 94.3 kB / 0.6605 GB, free: 39.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.677e-05/1.158, allocations: 39.22 kB / 0.6605 GB, free: 39.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001617/1.159, allocations: 1.16 MB / 0.6616 GB, free: 39.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.159, allocations: 2.531 kB / 0.6616 GB, free: 39.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002394/1.162, allocations: 0.546 MB / 0.6622 GB, free: 39.32 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * 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%) 8,(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.0006329/1.162, allocations: 455 kB / 0.6626 GB, free: 39.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002546/1.165, allocations: 2.033 MB / 0.6646 GB, free: 38.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.165, allocations: 0 / 0.6646 GB, free: 38.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/1.167, allocations: 1.36 MB / 0.6659 GB, free: 37.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/1.169, allocations: 445.4 kB / 0.6664 GB, free: 37.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009071/1.178, allocations: 4.813 MB / 0.6711 GB, free: 35.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/1.18, allocations: 2.486 MB / 0.6735 GB, free: 34.15 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001619/1.181, allocations: 0.4958 MB / 0.674 GB, free: 34.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003762/1.182, allocations: 145.2 kB / 0.6741 GB, free: 34.08 MB / 442.7 MB Notification: Performance of SimCode: time 8.22e-07/1.182, allocations: 4 kB / 0.6741 GB, free: 34.07 MB / 442.7 MB Notification: Performance of Templates: time 0.03982/1.221, allocations: 24.48 MB / 0.698 GB, free: 32.11 MB / 442.7 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","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches