Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 104.1 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.445/2.445, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 56.14 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1262, allocations: 46.62 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.03826/0.1645, allocations: 20.23 MB / 347.6 MB, free: 36 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.1888, allocations: 5.951 MB / 353.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006418/0.1954, allocations: 115.5 kB / 353.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007317/0.2027, allocations: 1.339 MB / 355 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.2138, allocations: 1.914 MB / 356.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007533/0.2214, allocations: 1.24 MB / 358.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01398/0.2354, allocations: 6.076 MB / 364.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01295/0.2484, allocations: 5.37 MB / 369.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006798/0.2552, allocations: 2.819 MB / 372.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009052/0.2643, allocations: 3.374 MB / 375.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003625/0.268, allocations: 0.7812 MB / 376.6 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00535/0.2734, allocations: 1.078 MB / 377.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.271/0.5445, allocations: 1.937 MB / 379.6 MB, free: 21.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01261/0.5571, allocations: 3.35 MB / 383 MB, free: 21.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02218/0.5794, allocations: 10.2 MB / 393.2 MB, free: 20.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.5794, allocations: 0 / 393.2 MB, free: 20.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5795, allocations: 1.438 kB / 393.2 MB, free: 20.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004332/0.5799, allocations: 0 / 393.2 MB, free: 20.46 MB / 318.1 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.03732/0.6173, allocations: 6.588 MB / 399.7 MB, free: 17.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.256e-05/0.6174, allocations: 9.406 kB / 399.8 MB, free: 17.58 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00423/0.6216, allocations: 0.7043 MB / 400.5 MB, free: 17.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.6336, allocations: 1.007 MB / 401.5 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/0.647, allocations: 3.302 MB / 404.8 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007136/0.6478, allocations: 403.3 kB / 405.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002837/0.6507, allocations: 0.5071 MB / 405.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02979/0.6805, allocations: 6.767 MB / 412.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004298/0.681, allocations: 7.25 kB / 412.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003151/0.6842, allocations: 211.8 kB / 412.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004335/0.6846, allocations: 244.5 kB / 412.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0254/0.7101, allocations: 5.739 MB / 418.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07478/0.7849, allocations: 21.1 MB / 439.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01611/0.8011, allocations: 8.554 MB / 448.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006989/0.8082, allocations: 2.112 MB / 450.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02208/0.8303, allocations: 5.937 MB / 456.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.64e-05/0.8305, allocations: 56.56 kB / 456.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 1.009e-05/0.8305, allocations: 0 / 456.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.0387/0.8692, allocations: 10.26 MB / 466.7 MB, free: 6.223 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/0.8694, allocations: 77.41 kB / 466.7 MB, free: 6.133 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/0.8796, allocations: 2.904 MB / 469.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006764/0.8803, allocations: 61.7 kB / 469.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003231/0.8836, allocations: 2.359 MB / 472.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001585/0.8852, allocations: 0.7744 MB / 472.8 MB, free: 8 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002218/0.8875, allocations: 0.5099 MB / 473.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.8877, allocations: 305.1 kB / 473.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004122/0.8918, allocations: 1.267 MB / 474.9 MB, free: 13.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004923/0.8968, allocations: 2.184 MB / 477.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009162/0.906, allocations: 3.665 MB / 480.8 MB, free: 7.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.321e-05/0.906, allocations: 8 kB / 480.8 MB, free: 7.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01413/0.9202, allocations: 4.44 MB / 485.2 MB, free: 3.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.513e-05/0.9203, allocations: 19.28 kB / 485.2 MB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-05/0.9204, allocations: 32 kB / 485.2 MB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002145/0.9226, allocations: 0.5151 MB / 485.8 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005066/0.9277, allocations: 0.6857 MB / 486.4 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01691/0.9446, allocations: 10.2 MB / 496.6 MB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006212/0.9509, allocations: 175.7 kB / 496.8 MB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/0.952, allocations: 132 kB / 496.9 MB, free: 6.715 MB / 398.1 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006845/0.9589, allocations: 1.521 MB / 498.5 MB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/0.9609, allocations: 316.2 kB / 498.8 MB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/0.9742, allocations: 3.872 MB / 0.4909 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/0.9743, allocations: 20 kB / 0.4909 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.765e-05/0.9744, allocations: 11.94 kB / 0.4909 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.751e-05/0.9744, allocations: 7.969 kB / 0.4909 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03143/1.006, allocations: 8.492 MB / 0.4992 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/1.006, allocations: 4 kB / 0.4992 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003153/1.009, allocations: 385.5 kB / 0.4996 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003478/1.013, allocations: 0.7267 MB / 0.5003 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004377/1.013, allocations: 59.98 kB / 0.5003 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02617/1.039, allocations: 16.63 MB / 0.5166 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/1.039, allocations: 7.656 kB / 0.5166 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/1.057, allocations: 5.556 MB / 0.522 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003538/1.061, allocations: 0.657 MB / 0.5227 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/1.063, allocations: 51.98 kB / 0.5227 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004215/1.067, allocations: 131.9 kB / 0.5228 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009434/1.068, allocations: 165.4 kB / 0.523 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004293/1.069, allocations: 75.97 kB / 0.5231 GB, free: 14.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007914/1.077, allocations: 1.963 MB / 0.525 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.077, allocations: 0 / 0.525 GB, free: 12.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008863/1.085, allocations: 0.9337 MB / 0.5259 GB, free: 11.87 MB / 446.1 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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01843/1.104, allocations: 6.242 MB / 0.532 GB, free: 5.527 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02058/1.125, allocations: 5.407 MB / 0.5373 GB, free: 136 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/1.125, allocations: 4 kB / 0.5373 GB, free: 132 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2793/1.404, allocations: 2.648 MB / 0.5399 GB, free: 167.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/1.415, allocations: 0.8501 MB / 0.5407 GB, free: 167 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1205/1.536, allocations: 39.6 MB / 0.5794 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009452/1.545, allocations: 3.294 MB / 0.5826 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006726/1.552, allocations: 0.7656 MB / 0.5833 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006378/1.558, allocations: 1.94 MB / 0.5852 GB, free: 133.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.144e-06/1.558, allocations: 0 / 0.5852 GB, free: 133.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2241/1.783, allocations: 82.78 MB / 0.6661 GB, free: 50.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.94/20.72, allocations: 16.67 kB / 0.6661 GB, free: 50.2 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches