Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008164/0.0008165, allocations: 99.31 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002225, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1984, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01271/0.2111, allocations: 18.46 MB / 426.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009273/0.2205, allocations: 5.754 MB / 432.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.2236, allocations: 127.4 kB / 432.4 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003235/0.2269, allocations: 1.002 MB / 433.4 MB, free: 2.281 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005182/0.2321, allocations: 1.594 MB / 435 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002758/0.2349, allocations: 0.8544 MB / 435.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007932/0.2428, allocations: 6.303 MB / 442.2 MB, free: 9.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007333/0.2502, allocations: 4.515 MB / 446.7 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003712/0.254, allocations: 2.004 MB / 448.7 MB, free: 2.887 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00433/0.2583, allocations: 2.657 MB / 451.3 MB, free: 224 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001564/0.2599, allocations: 320 kB / 451.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002931/0.2629, allocations: 0.6245 MB / 452.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00244/0.2654, allocations: 1.367 MB / 453.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005055/0.2704, allocations: 2.649 MB / 456.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009218/0.2797, allocations: 8.418 MB / 464.7 MB, free: 2.797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2797, allocations: 0 / 464.7 MB, free: 2.797 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2797, allocations: 0 / 464.7 MB, free: 2.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003666/0.2801, allocations: 0 / 464.7 MB, free: 2.797 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01493/0.2951, allocations: 5.564 MB / 470.3 MB, free: 13.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.2951, allocations: 8.031 kB / 470.3 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0055/0.3006, allocations: 1.021 MB / 471.3 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008096/0.3088, allocations: 3.451 MB / 474.7 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004815/0.3093, allocations: 402.8 kB / 475.1 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/0.3109, allocations: 0.5075 MB / 475.6 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.017/0.3279, allocations: 6.751 MB / 482.4 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000277/0.3283, allocations: 7.906 kB / 482.4 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001243/0.3295, allocations: 211.9 kB / 482.6 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002855/0.3298, allocations: 242.2 kB / 482.8 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01478/0.3446, allocations: 5.748 MB / 488.6 MB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04657/0.3912, allocations: 21.3 MB / 0.4979 GB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1888/0.5801, allocations: 8.811 MB / 0.5065 GB, free: 79.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005412/0.5855, allocations: 2.231 MB / 0.5087 GB, free: 79.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.5987, allocations: 6.237 MB / 0.5148 GB, free: 76.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.857e-05/0.5988, allocations: 52.44 kB / 0.5149 GB, free: 76.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 6.262e-06/0.5988, allocations: 0.5625 kB / 0.5149 GB, free: 76.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.02191/0.6208, allocations: 10.55 MB / 0.5252 GB, free: 71.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.6209, allocations: 76.03 kB / 0.5252 GB, free: 71.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00493/0.6258, allocations: 2.901 MB / 0.5281 GB, free: 70.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003597/0.6262, allocations: 64.23 kB / 0.5281 GB, free: 70.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.6274, allocations: 2.356 MB / 0.5304 GB, free: 68.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007573/0.6282, allocations: 0.7732 MB / 0.5312 GB, free: 67.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003028/0.6285, allocations: 53.75 kB / 0.5312 GB, free: 67.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.6287, allocations: 424.3 kB / 0.5316 GB, free: 67.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002347/0.6311, allocations: 1.271 MB / 0.5329 GB, free: 66.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002533/0.6336, allocations: 2.179 MB / 0.535 GB, free: 63.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004681/0.6383, allocations: 3.68 MB / 0.5386 GB, free: 59.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.17e-05/0.6384, allocations: 8 kB / 0.5386 GB, free: 59.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007664/0.646, allocations: 4.466 MB / 0.543 GB, free: 55.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.6461, allocations: 16 kB / 0.543 GB, free: 55.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.908e-05/0.6462, allocations: 28 kB / 0.543 GB, free: 55.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.6474, allocations: 0.5501 MB / 0.5436 GB, free: 54.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002478/0.6498, allocations: 0.6885 MB / 0.5442 GB, free: 53.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007137/0.657, allocations: 9.476 MB / 0.5535 GB, free: 43.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/0.66, allocations: 187.8 kB / 0.5537 GB, free: 43.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005123/0.6606, allocations: 128 kB / 0.5538 GB, free: 43.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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%) 11,(1,100.0%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003343/0.6639, allocations: 1.52 MB / 0.5553 GB, free: 41.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/0.665, allocations: 320.1 kB / 0.5556 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006746/0.6717, allocations: 3.922 MB / 0.5594 GB, free: 37.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.108e-05/0.6718, allocations: 24 kB / 0.5594 GB, free: 37.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-05/0.6719, allocations: 11.98 kB / 0.5594 GB, free: 37.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.396e-05/0.6719, allocations: 7.969 kB / 0.5594 GB, free: 37.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/0.688, allocations: 8.537 MB / 0.5678 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.6881, allocations: 4 kB / 0.5678 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/0.6897, allocations: 387.9 kB / 0.5682 GB, free: 28.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/0.6915, allocations: 0.7365 MB / 0.5689 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/0.6918, allocations: 59.97 kB / 0.5689 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/0.7032, allocations: 15.37 MB / 0.5839 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.7033, allocations: 7.844 kB / 0.584 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009236/0.7125, allocations: 5.601 MB / 0.5894 GB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/0.7144, allocations: 0.6609 MB / 0.5901 GB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000942/0.7153, allocations: 52.11 kB / 0.5901 GB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/0.7173, allocations: 151.9 kB / 0.5903 GB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004486/0.7178, allocations: 169.6 kB / 0.5904 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/0.718, allocations: 63.98 kB / 0.5905 GB, free: 4.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003734/0.7217, allocations: 1.952 MB / 0.5924 GB, free: 2.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7217, allocations: 4 kB / 0.5924 GB, free: 2.477 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004063/0.7258, allocations: 0.9348 MB / 0.5933 GB, free: 1.547 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006106/0.7264, allocations: 273 kB / 0.5936 GB, free: 1.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006601/0.733, allocations: 3.974 MB / 0.5974 GB, free: 13.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/0.7331, allocations: 3.938 kB / 0.5975 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0044/0.7375, allocations: 2.674 MB / 0.6001 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00585/0.7434, allocations: 0.8126 MB / 0.6009 GB, free: 9.645 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01944/0.7628, allocations: 11.42 MB / 0.612 GB, free: 14.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00447/0.7674, allocations: 3.222 MB / 0.6152 GB, free: 10.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.7686, allocations: 251.4 kB / 0.6154 GB, free: 10.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7686, allocations: 3.938 kB / 0.6154 GB, free: 10.65 MB / 410.7 MB Notification: Performance of Templates: time 0.6725/1.441, allocations: 250.5 MB / 0.8601 GB, free: 160.9 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches