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.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,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.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",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.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",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001433/0.001434, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.4 MB / 223.6 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007752/0.0007751, allocations: 86.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004327/0.0004329, allocations: 15.98 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2441, allocations: 47.56 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.5521, allocations: 130.8 MB / 0.4947 GB, free: 109 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.5524, allocations: 89.88 kB / 0.4948 GB, free: 109 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2553/0.8077, allocations: 123.9 MB / 0.6158 GB, free: 0.793 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.8078, allocations: 0 / 0.6158 GB, free: 0.793 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004277/0.8082, allocations: 139.8 kB / 0.6159 GB, free: 0.6562 MB / 378.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.01615/0.8244, allocations: 5.581 MB / 0.6214 GB, free: 10.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.8244, allocations: 12.03 kB / 0.6214 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005381/0.8298, allocations: 1.012 MB / 0.6224 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009576/0.8394, allocations: 4.065 MB / 0.6264 GB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004015/0.8399, allocations: 403.1 kB / 0.6267 GB, free: 5.426 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/0.8414, allocations: 0.5275 MB / 0.6273 GB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01656/0.858, allocations: 7.01 MB / 0.6341 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001907/0.8582, allocations: 19.84 kB / 0.6341 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008362/0.8591, allocations: 228 kB / 0.6343 GB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002321/0.8593, allocations: 254.5 kB / 0.6346 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.873, allocations: 5.625 MB / 0.6401 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2635/1.136, allocations: 22.55 MB / 0.6621 GB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007031/1.144, allocations: 8.41 MB / 0.6703 GB, free: 36.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003467/1.147, allocations: 2.201 MB / 0.6725 GB, free: 36.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/1.159, allocations: 6.344 MB / 0.6787 GB, free: 35.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/1.159, allocations: 60.59 kB / 0.6787 GB, free: 35.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=229): time 5.17e-06/1.159, allocations: 3.969 kB / 0.6787 GB, free: 35.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=256): time 0.02791/1.187, allocations: 12.48 MB / 0.6909 GB, free: 33.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/1.187, allocations: 77.36 kB / 0.691 GB, free: 33.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005376/1.192, allocations: 3.121 MB / 0.694 GB, free: 33.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006006/1.193, allocations: 71.95 kB / 0.6941 GB, free: 33.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/1.195, allocations: 2.479 MB / 0.6965 GB, free: 32.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009196/1.195, allocations: 0.8799 MB / 0.6974 GB, free: 31.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/1.196, allocations: 68.03 kB / 0.6974 GB, free: 31.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/1.196, allocations: 438.2 kB / 0.6979 GB, free: 31.45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/1.198, allocations: 1.404 MB / 0.6992 GB, free: 31.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002509/1.201, allocations: 2.389 MB / 0.7016 GB, free: 30.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004841/1.205, allocations: 4.058 MB / 0.7055 GB, free: 29.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/1.205, allocations: 7.031 kB / 0.7055 GB, free: 29.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007736/1.213, allocations: 4.944 MB / 0.7104 GB, free: 28.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.677e-05/1.213, allocations: 22.62 kB / 0.7104 GB, free: 28.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.281e-05/1.213, allocations: 33.62 kB / 0.7104 GB, free: 28.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.215, allocations: 0.7243 MB / 0.7111 GB, free: 28.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/1.218, allocations: 0.7561 MB / 0.7119 GB, free: 28.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009219/1.227, allocations: 9.766 MB / 0.7214 GB, free: 21.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004184/1.231, allocations: 203.2 kB / 0.7216 GB, free: 21.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005553/1.232, allocations: 143.8 kB / 0.7217 GB, free: 21.52 MB / 410.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,72.2%) 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.003863/1.236, allocations: 1.578 MB / 0.7233 GB, free: 20.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/1.237, allocations: 351.4 kB / 0.7236 GB, free: 20.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007361/1.244, allocations: 4.385 MB / 0.7279 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/1.244, allocations: 22.38 kB / 0.7279 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.802e-05/1.244, allocations: 19.42 kB / 0.7279 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.618e-05/1.244, allocations: 10.41 kB / 0.7279 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.261, allocations: 9.374 MB / 0.7371 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.261, allocations: 8.844 kB / 0.7371 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001661/1.263, allocations: 416.7 kB / 0.7375 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/1.265, allocations: 0.9616 MB / 0.7384 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003459/1.266, allocations: 74.19 kB / 0.7385 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.28, allocations: 15.99 MB / 0.7541 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/1.28, allocations: 12.66 kB / 0.7541 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009828/1.29, allocations: 6.248 MB / 0.7602 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/1.292, allocations: 0.7201 MB / 0.7609 GB, free: 14.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008554/1.293, allocations: 61.95 kB / 0.761 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/1.295, allocations: 165.1 kB / 0.7612 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004728/1.296, allocations: 186.8 kB / 0.7613 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.296, allocations: 77.72 kB / 0.7614 GB, free: 14.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003645/1.299, allocations: 2.097 MB / 0.7635 GB, free: 13.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.299, allocations: 4 kB / 0.7635 GB, free: 13.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005078/1.304, allocations: 1.084 MB / 0.7645 GB, free: 12.49 MB / 426.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,72.2%) 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.001066/1.306, allocations: 0.5335 MB / 0.765 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0077/1.313, allocations: 4.325 MB / 0.7693 GB, free: 8.234 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.313, allocations: 4 kB / 0.7693 GB, free: 8.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004736/1.318, allocations: 2.876 MB / 0.7721 GB, free: 5.621 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006405/1.324, allocations: 0.8918 MB / 0.7729 GB, free: 4.918 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02194/1.346, allocations: 12.1 MB / 0.7848 GB, free: 9.809 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/1.351, allocations: 3.354 MB / 0.788 GB, free: 7.207 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.352, allocations: 266.4 kB / 0.7883 GB, free: 6.961 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.352, allocations: 2.625 kB / 0.7883 GB, free: 6.961 MB / 442.7 MB Notification: Performance of Templates: time 0.6716/2.024, allocations: 240.2 MB / 1.023 GB, free: 117.6 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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/SMPM_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches