Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009708/0.0009708, allocations: 200.5 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 245.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008301/0.0008301, allocations: 106.1 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002165, allocations: 4 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1981, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.5417, allocations: 132.7 MB / 0.5294 GB, free: 47.05 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.5419, allocations: 100.4 kB / 0.5295 GB, free: 47.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2855/0.8275, allocations: 127.4 MB / 0.6539 GB, free: 9.516 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.8275, allocations: 0 / 0.6539 GB, free: 9.516 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005178/0.8281, allocations: 139.8 kB / 0.6541 GB, free: 9.379 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0175/0.8456, allocations: 5.636 MB / 0.6596 GB, free: 3.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.8456, allocations: 8.031 kB / 0.6596 GB, free: 3.652 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005837/0.8515, allocations: 1.028 MB / 0.6606 GB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/0.8621, allocations: 4.093 MB / 0.6646 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005504/0.8627, allocations: 403.2 kB / 0.665 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.8649, allocations: 0.5275 MB / 0.6655 GB, free: 13.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/0.884, allocations: 7.006 MB / 0.6723 GB, free: 6.312 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002442/0.8843, allocations: 19.84 kB / 0.6723 GB, free: 6.293 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001285/0.8856, allocations: 220 kB / 0.6725 GB, free: 6.078 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002507/0.8858, allocations: 250.6 kB / 0.6728 GB, free: 5.832 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.8988, allocations: 5.629 MB / 0.6783 GB, free: 200 kB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2874/1.186, allocations: 22.72 MB / 0.7005 GB, free: 59.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006911/1.193, allocations: 8.665 MB / 0.7089 GB, free: 53.44 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003206/1.196, allocations: 2.196 MB / 0.7111 GB, free: 53.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01164/1.208, allocations: 6.605 MB / 0.7175 GB, free: 52.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/1.208, allocations: 61.22 kB / 0.7176 GB, free: 52.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 4.057e-06/1.208, allocations: 3.062 kB / 0.7176 GB, free: 52.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.02399/1.232, allocations: 12.7 MB / 0.73 GB, free: 49.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/1.232, allocations: 84.86 kB / 0.7301 GB, free: 49.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/1.237, allocations: 3.139 MB / 0.7331 GB, free: 49.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003482/1.237, allocations: 66.52 kB / 0.7332 GB, free: 49.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/1.238, allocations: 2.496 MB / 0.7356 GB, free: 48.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006104/1.239, allocations: 0.8788 MB / 0.7365 GB, free: 47.87 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/1.239, allocations: 64.59 kB / 0.7366 GB, free: 47.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/1.239, allocations: 437.6 kB / 0.737 GB, free: 47.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/1.241, allocations: 1.407 MB / 0.7383 GB, free: 47.55 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/1.243, allocations: 2.394 MB / 0.7407 GB, free: 46.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/1.248, allocations: 4.061 MB / 0.7447 GB, free: 43.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/1.248, allocations: 7.375 kB / 0.7447 GB, free: 43.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007462/1.255, allocations: 4.939 MB / 0.7495 GB, free: 41.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/1.255, allocations: 22.16 kB / 0.7495 GB, free: 41.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.615e-05/1.255, allocations: 28.91 kB / 0.7495 GB, free: 41.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/1.257, allocations: 0.7272 MB / 0.7502 GB, free: 41.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/1.26, allocations: 0.756 MB / 0.751 GB, free: 41.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008045/1.268, allocations: 9.805 MB / 0.7606 GB, free: 34.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/1.271, allocations: 201.1 kB / 0.7607 GB, free: 34.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005638/1.272, allocations: 144.1 kB / 0.7609 GB, free: 34.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * 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 (380): * Single equations (assignments): 374 * 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 {(6,75.0%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003732/1.276, allocations: 1.585 MB / 0.7624 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008858/1.276, allocations: 355.6 kB / 0.7628 GB, free: 33.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006631/1.283, allocations: 4.392 MB / 0.7671 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/1.283, allocations: 25.28 kB / 0.7671 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/1.283, allocations: 10.81 kB / 0.7671 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.222e-05/1.283, allocations: 15.19 kB / 0.7671 GB, free: 31.42 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/1.296, allocations: 9.387 MB / 0.7763 GB, free: 27.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/1.297, allocations: 7.219 kB / 0.7763 GB, free: 27.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/1.298, allocations: 415.9 kB / 0.7767 GB, free: 27.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002165/1.3, allocations: 0.9619 MB / 0.7776 GB, free: 27.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/1.3, allocations: 68.19 kB / 0.7777 GB, free: 27.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/1.313, allocations: 16.01 MB / 0.7933 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.313, allocations: 3.844 kB / 0.7933 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008624/1.321, allocations: 6.25 MB / 0.7994 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/1.323, allocations: 0.7277 MB / 0.8001 GB, free: 11.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004575/1.324, allocations: 61.91 kB / 0.8002 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/1.325, allocations: 161 kB / 0.8004 GB, free: 11.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/1.326, allocations: 190.2 kB / 0.8005 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/1.326, allocations: 74.3 kB / 0.8006 GB, free: 11.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002993/1.329, allocations: 2.109 MB / 0.8027 GB, free: 10.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.329, allocations: 0 / 0.8027 GB, free: 10.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003545/1.332, allocations: 1.107 MB / 0.8037 GB, free: 10.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (199): * Single equations (assignments): 192 * 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 {(6,75.0%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009179/1.333, allocations: 0.5398 MB / 0.8043 GB, free: 10.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005813/1.339, allocations: 4.325 MB / 0.8085 GB, free: 7.777 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/1.339, allocations: 4 kB / 0.8085 GB, free: 7.773 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/1.343, allocations: 2.888 MB / 0.8113 GB, free: 5.117 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005774/1.349, allocations: 0.918 MB / 0.8122 GB, free: 4.406 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01682/1.365, allocations: 12.06 MB / 0.824 GB, free: 9.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003386/1.369, allocations: 3.44 MB / 0.8274 GB, free: 6.66 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003058/1.372, allocations: 0.8076 MB / 0.8281 GB, free: 6.094 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006686/1.373, allocations: 240.8 kB / 0.8284 GB, free: 5.875 MB / 474.7 MB Notification: Performance of SimCode: time 6.51e-07/1.373, allocations: 0 / 0.8284 GB, free: 5.875 MB / 474.7 MB Notification: Performance of Templates: time 0.2893/1.662, allocations: 55.46 MB / 0.8825 GB, free: 74.34 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches