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.00109/0.00109, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.315/1.315, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0008074/0.0008075, allocations: 88.25 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003369, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2238, allocations: 47.58 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01671/0.2405, allocations: 19.19 MB / 394.3 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.2549, allocations: 6.043 MB / 400.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004292/0.2592, allocations: 111.5 kB / 400.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004017/0.2632, allocations: 1.099 MB / 401.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006985/0.2702, allocations: 1.717 MB / 403.2 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00348/0.2737, allocations: 0.8773 MB / 404.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008672/0.2824, allocations: 6.627 MB / 410.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006049/0.2885, allocations: 4.577 MB / 415.3 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004126/0.2927, allocations: 2.12 MB / 417.4 MB, free: 6.168 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004789/0.2975, allocations: 2.809 MB / 420.3 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001806/0.2994, allocations: 344 kB / 420.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.3026, allocations: 0.6245 MB / 421.2 MB, free: 2.387 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002007/0.3047, allocations: 1.433 MB / 422.7 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004919/0.3096, allocations: 2.797 MB / 425.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.3198, allocations: 8.761 MB / 434.2 MB, free: 5.348 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.3199, allocations: 0 / 434.2 MB, free: 5.348 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3199, allocations: 0 / 434.2 MB, free: 5.348 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000405/0.3203, allocations: 0 / 434.2 MB, free: 5.348 MB / 314.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.01457/0.3348, allocations: 5.816 MB / 440 MB, free: 15.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3349, allocations: 8.031 kB / 440 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005491/0.3404, allocations: 1.063 MB / 441.1 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007494/0.3479, allocations: 3.453 MB / 444.5 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000406/0.3484, allocations: 419.1 kB / 445 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001257/0.3496, allocations: 0.5232 MB / 445.5 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01483/0.3645, allocations: 7.024 MB / 452.5 MB, free: 2.809 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.3647, allocations: 15.83 kB / 452.5 MB, free: 2.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004891/0.3652, allocations: 216 kB / 452.7 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/0.3654, allocations: 262.6 kB / 453 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.3776, allocations: 5.929 MB / 458.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04009/0.4177, allocations: 22.54 MB / 481.5 MB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007903/0.4257, allocations: 8.269 MB / 489.7 MB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003621/0.4293, allocations: 2.199 MB / 491.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.4412, allocations: 6.218 MB / 498.1 MB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/0.4413, allocations: 56.56 kB / 498.2 MB, free: 3.488 MB / 378.7 MB Notification: Performance of pre-optimization done (n=220): time 3.727e-06/0.4413, allocations: 0 / 498.2 MB, free: 3.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=240): time 0.1886/0.6299, allocations: 11.29 MB / 0.4976 GB, free: 100.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.63, allocations: 75.97 kB / 0.4976 GB, free: 100.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/0.6352, allocations: 3.13 MB / 0.5007 GB, free: 99.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004022/0.6356, allocations: 62.3 kB / 0.5007 GB, free: 99.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.6372, allocations: 2.506 MB / 0.5032 GB, free: 97.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007298/0.6379, allocations: 0.828 MB / 0.504 GB, free: 97.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.6381, allocations: 63.66 kB / 0.5041 GB, free: 96.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6382, allocations: 437.9 kB / 0.5045 GB, free: 96.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/0.6402, allocations: 1.335 MB / 0.5058 GB, free: 96.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/0.6425, allocations: 2.339 MB / 0.5081 GB, free: 94.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004142/0.6466, allocations: 3.941 MB / 0.5119 GB, free: 91.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/0.6466, allocations: 7.062 kB / 0.5119 GB, free: 91.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006662/0.6533, allocations: 4.705 MB / 0.5165 GB, free: 88.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.6534, allocations: 20 kB / 0.5165 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.305e-05/0.6534, allocations: 40.05 kB / 0.5166 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.6544, allocations: 0.5194 MB / 0.5171 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002352/0.6568, allocations: 0.7536 MB / 0.5178 GB, free: 87.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006232/0.663, allocations: 9.418 MB / 0.527 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003099/0.6661, allocations: 199.6 kB / 0.5272 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004433/0.6666, allocations: 136 kB / 0.5273 GB, free: 76.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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): 373 * 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: 5 * 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: 5 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003583/0.6702, allocations: 1.574 MB / 0.5289 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009125/0.6711, allocations: 339.8 kB / 0.5292 GB, free: 74.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005722/0.6768, allocations: 4.079 MB / 0.5332 GB, free: 70.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.6769, allocations: 27.98 kB / 0.5332 GB, free: 70.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.6769, allocations: 8 kB / 0.5332 GB, free: 70.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.6769, allocations: 11.95 kB / 0.5332 GB, free: 70.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/0.6893, allocations: 8.987 MB / 0.542 GB, free: 61.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.6893, allocations: 4 kB / 0.542 GB, free: 61.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.6909, allocations: 415.8 kB / 0.5424 GB, free: 61.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.6926, allocations: 0.7448 MB / 0.5431 GB, free: 60.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.6928, allocations: 67.97 kB / 0.5432 GB, free: 60.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.7032, allocations: 15.31 MB / 0.5581 GB, free: 43.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.7032, allocations: 8 kB / 0.5582 GB, free: 43.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008091/0.7113, allocations: 5.869 MB / 0.5639 GB, free: 37.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/0.7131, allocations: 0.6959 MB / 0.5646 GB, free: 37.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004483/0.7136, allocations: 59.98 kB / 0.5646 GB, free: 37.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.7151, allocations: 151.9 kB / 0.5648 GB, free: 36.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003861/0.7155, allocations: 177.7 kB / 0.5649 GB, free: 36.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.7156, allocations: 75.97 kB / 0.565 GB, free: 36.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002854/0.7185, allocations: 2.103 MB / 0.5671 GB, free: 34.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7185, allocations: 0 / 0.5671 GB, free: 34.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003391/0.7219, allocations: 0.9923 MB / 0.568 GB, free: 33.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005081/0.7224, allocations: 240.7 kB / 0.5683 GB, free: 33.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005374/0.7278, allocations: 4.148 MB / 0.5723 GB, free: 29.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7278, allocations: 4.062 kB / 0.5723 GB, free: 29.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/0.7312, allocations: 2.759 MB / 0.575 GB, free: 26.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005831/0.7371, allocations: 0.9088 MB / 0.5759 GB, free: 25.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.7529, allocations: 11.96 MB / 0.5876 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002421/0.7553, allocations: 3.323 MB / 0.5908 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.7565, allocations: 267.4 kB / 0.5911 GB, free: 9.688 MB / 378.7 MB Notification: Performance of SimCode: time 1.893e-06/0.7565, allocations: 0 / 0.5911 GB, free: 9.688 MB / 378.7 MB Notification: Performance of Templates: time 0.6183/1.375, allocations: 264.3 MB / 0.8492 GB, free: 124.9 MB / 442.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/jenkins/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