Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002062/0.002067, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.953/1.953, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 84.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.962e-05/1.971e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3286, allocations: 47.57 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.5184, allocations: 116.5 MB / 478.8 MB, free: 1.75 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/0.5188, allocations: 83.95 kB / 478.9 MB, free: 1.668 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8534/1.372, allocations: 167.2 MB / 0.6309 GB, free: 9.684 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.943e-06/1.372, allocations: 0 / 0.6309 GB, free: 9.684 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006641/1.373, allocations: 179.8 kB / 0.6311 GB, free: 9.508 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02719/1.4, allocations: 6.671 MB / 0.6376 GB, free: 2.754 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.4, allocations: 8.031 kB / 0.6376 GB, free: 2.746 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/1.413, allocations: 1.599 MB / 0.6392 GB, free: 1.137 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02306/1.436, allocations: 5.945 MB / 0.645 GB, free: 11.12 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005852/1.437, allocations: 244 kB / 0.6452 GB, free: 10.88 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002973/1.44, allocations: 427.9 kB / 0.6456 GB, free: 10.46 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02549/1.465, allocations: 7.121 MB / 0.6526 GB, free: 3.336 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3387/1.804, allocations: 8.309 MB / 0.6607 GB, free: 38.52 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000353/1.805, allocations: 11.78 kB / 0.6607 GB, free: 38.52 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00207/1.807, allocations: 7.125 kB / 0.6607 GB, free: 38.52 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004225/1.807, allocations: 338.9 kB / 0.661 GB, free: 38.51 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0735/1.881, allocations: 29.24 MB / 0.6896 GB, free: 33.02 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02226/1.903, allocations: 15.86 MB / 0.7051 GB, free: 21.16 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007273/1.91, allocations: 2.918 MB / 0.7079 GB, free: 21.11 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02362/1.934, allocations: 7.953 MB / 0.7157 GB, free: 20.04 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/1.934, allocations: 68.33 kB / 0.7158 GB, free: 20 MB / 411.1 MB Notification: Performance of pre-optimization done (n=286): time 6.573e-06/1.934, allocations: 0 / 0.7158 GB, free: 20 MB / 411.1 MB Notification: Performance of matching and sorting (n=294): time 0.02703/1.961, allocations: 8.811 MB / 0.7244 GB, free: 18.26 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/1.961, allocations: 82.03 kB / 0.7244 GB, free: 18.2 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006098/1.967, allocations: 2.523 MB / 0.7269 GB, free: 17.5 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005964/1.968, allocations: 25.7 kB / 0.7269 GB, free: 17.46 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00223/1.97, allocations: 3.044 MB / 0.7299 GB, free: 15.1 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/1.972, allocations: 0.9655 MB / 0.7308 GB, free: 14.34 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/1.972, allocations: 3.562 kB / 0.7308 GB, free: 14.34 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000234/1.972, allocations: 454.9 kB / 0.7313 GB, free: 13.96 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003109/1.975, allocations: 1.336 MB / 0.7326 GB, free: 13.39 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003976/1.979, allocations: 2.439 MB / 0.735 GB, free: 11.44 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006189/1.986, allocations: 2.124 MB / 0.737 GB, free: 10.64 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-05/1.986, allocations: 14.31 kB / 0.7371 GB, free: 10.64 MB / 411.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01386/2, allocations: 4.555 MB / 0.7415 GB, free: 9 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.45e-05/2, allocations: 18.55 kB / 0.7415 GB, free: 9 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.04e-05/2, allocations: 37.44 kB / 0.7416 GB, free: 9 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/2.001, allocations: 390.6 kB / 0.7419 GB, free: 8.863 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006753/2.008, allocations: 0.8776 MB / 0.7428 GB, free: 8.836 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007944/2.016, allocations: 7.053 MB / 0.7497 GB, free: 2.848 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00505/2.021, allocations: 114 kB / 0.7498 GB, free: 2.836 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000942/2.022, allocations: 163.2 kB / 0.7499 GB, free: 2.809 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (454): * Single equations (assignments): 448 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008553/2.023, allocations: 212.7 kB / 0.7501 GB, free: 2.672 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/2.024, allocations: 356.9 kB / 0.7505 GB, free: 2.488 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/2.038, allocations: 4.375 MB / 0.7548 GB, free: 0.6445 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.27e-05/2.038, allocations: 29.12 kB / 0.7548 GB, free: 0.6445 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.261e-05/2.038, allocations: 15.52 kB / 0.7548 GB, free: 0.6406 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.142e-05/2.038, allocations: 17.66 kB / 0.7548 GB, free: 0.6406 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/2.068, allocations: 9.539 MB / 0.7641 GB, free: 12.63 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.801e-05/2.068, allocations: 6.188 kB / 0.7641 GB, free: 12.63 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004077/2.072, allocations: 454.3 kB / 0.7646 GB, free: 12.61 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003863/2.076, allocations: 0.8539 MB / 0.7654 GB, free: 12.32 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006412/2.077, allocations: 43.02 kB / 0.7654 GB, free: 12.31 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02628/2.103, allocations: 15.68 MB / 0.7808 GB, free: 15.95 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/2.103, allocations: 6.812 kB / 0.7808 GB, free: 15.95 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.019/2.122, allocations: 6.735 MB / 0.7873 GB, free: 12.41 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003342/2.126, allocations: 0.7563 MB / 0.7881 GB, free: 11.91 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/2.127, allocations: 26.44 kB / 0.7881 GB, free: 11.89 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004381/2.132, allocations: 112.4 kB / 0.7882 GB, free: 11.89 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001066/2.133, allocations: 223.4 kB / 0.7884 GB, free: 11.85 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004733/2.133, allocations: 86.61 kB / 0.7885 GB, free: 11.83 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.005384/2.139, allocations: 1.862 MB / 0.7903 GB, free: 11.05 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.323e-06/2.139, allocations: 0 / 0.7903 GB, free: 11.05 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.00747/2.146, allocations: 1.121 MB / 0.7914 GB, free: 11.03 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 216 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001532/2.148, allocations: 0.5036 MB / 0.7919 GB, free: 10.84 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.01066/2.159, allocations: 3.992 MB / 0.7958 GB, free: 8.078 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.159, allocations: 3.281 kB / 0.7958 GB, free: 8.078 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007936/2.167, allocations: 2.803 MB / 0.7986 GB, free: 5.469 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007407/2.174, allocations: 0.7541 MB / 0.7993 GB, free: 4.887 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04712/2.221, allocations: 10.72 MB / 0.8098 GB, free: 13.08 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00923/2.23, allocations: 4.365 MB / 0.814 GB, free: 9.812 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00196/2.233, allocations: 286.5 kB / 0.8143 GB, free: 9.551 MB / 459.1 MB Notification: Performance of SimCode: time 1.242e-06/2.233, allocations: 0 / 0.8143 GB, free: 9.551 MB / 459.1 MB Notification: Performance of Templates: time 1.098/3.33, allocations: 295.6 MB / 1.103 GB, free: 75.21 MB / 491.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches