Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.00131/0.00131, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001226/0.001226, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2845, allocations: 49.44 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02115/0.3057, allocations: 20.29 MB / 420.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.3182, allocations: 5.9 MB / 426.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004219/0.3225, allocations: 139.4 kB / 426.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004617/0.3271, allocations: 1.393 MB / 428 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007597/0.3348, allocations: 2 MB / 430 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003728/0.3385, allocations: 1.22 MB / 431.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008465/0.347, allocations: 6.121 MB / 437.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007679/0.3547, allocations: 5.438 MB / 442.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004908/0.3597, allocations: 2.85 MB / 445.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005068/0.3648, allocations: 3.394 MB / 449 MB, free: 7.816 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001818/0.3666, allocations: 0.7812 MB / 449.8 MB, free: 7.035 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003214/0.3698, allocations: 1.07 MB / 450.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002065/0.3719, allocations: 1.948 MB / 452.8 MB, free: 4.012 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006378/0.3783, allocations: 3.353 MB / 456.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01452/0.3929, allocations: 10.33 MB / 466.5 MB, free: 6.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3929, allocations: 0 / 466.5 MB, free: 6.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.3929, allocations: 4 kB / 466.5 MB, free: 6.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003478/0.3933, allocations: 4 kB / 466.5 MB, free: 6.27 MB / 382.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.02017/0.4135, allocations: 6.733 MB / 473.2 MB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.4135, allocations: 11.89 kB / 473.2 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002082/0.4156, allocations: 0.7 MB / 473.9 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00524/0.4209, allocations: 1.036 MB / 475 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008428/0.4293, allocations: 3.589 MB / 478.6 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.4297, allocations: 392.1 kB / 478.9 MB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.4314, allocations: 0.4999 MB / 479.4 MB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.4475, allocations: 6.775 MB / 486.2 MB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001425/0.4477, allocations: 19.83 kB / 486.2 MB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006472/0.4484, allocations: 208 kB / 486.4 MB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002408/0.4486, allocations: 250.1 kB / 486.7 MB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.4602, allocations: 5.752 MB / 492.4 MB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03722/0.4974, allocations: 20.9 MB / 0.5013 GB, free: 6.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008672/0.5062, allocations: 8.54 MB / 0.5096 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003588/0.5098, allocations: 2.093 MB / 0.5117 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.5216, allocations: 5.916 MB / 0.5175 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.986e-05/0.5217, allocations: 56.56 kB / 0.5175 GB, free: 4.965 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.638e-06/0.5217, allocations: 0 / 0.5175 GB, free: 4.965 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02241/0.5442, allocations: 10.46 MB / 0.5277 GB, free: 10.27 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.5443, allocations: 77.34 kB / 0.5278 GB, free: 10.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005081/0.5493, allocations: 2.904 MB / 0.5306 GB, free: 7.266 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/0.5498, allocations: 65.7 kB / 0.5307 GB, free: 7.195 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/0.5517, allocations: 2.423 MB / 0.5331 GB, free: 4.754 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000958/0.5527, allocations: 0.8018 MB / 0.5338 GB, free: 3.945 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008293/0.5535, allocations: 0.5218 MB / 0.5344 GB, free: 3.414 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.5536, allocations: 301.1 kB / 0.5346 GB, free: 3.117 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.5558, allocations: 1.271 MB / 0.5359 GB, free: 1.844 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2526/0.8084, allocations: 2.175 MB / 0.538 GB, free: 124.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006061/0.8145, allocations: 3.674 MB / 0.5416 GB, free: 123.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.8145, allocations: 7.906 kB / 0.5416 GB, free: 123.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00643/0.821, allocations: 4.459 MB / 0.546 GB, free: 121.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.821, allocations: 16.59 kB / 0.546 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.109e-05/0.8211, allocations: 27.75 kB / 0.546 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.8221, allocations: 0.5124 MB / 0.5465 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002338/0.8245, allocations: 0.6819 MB / 0.5472 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00704/0.8315, allocations: 10.19 MB / 0.5571 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/0.8344, allocations: 172.8 kB / 0.5573 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003348/0.8347, allocations: 132.6 kB / 0.5574 GB, free: 112.8 MB / 462.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.002564/0.8373, allocations: 1.511 MB / 0.5589 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007151/0.838, allocations: 331 kB / 0.5592 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005684/0.8437, allocations: 3.881 MB / 0.563 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.8437, allocations: 26.59 kB / 0.563 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.8438, allocations: 7.469 kB / 0.563 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.8438, allocations: 11.48 kB / 0.563 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.8562, allocations: 8.47 MB / 0.5713 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.8563, allocations: 4 kB / 0.5713 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.8577, allocations: 384 kB / 0.5717 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.8594, allocations: 0.7168 MB / 0.5724 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.8595, allocations: 60.09 kB / 0.5724 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.8703, allocations: 16.65 MB / 0.5887 GB, free: 84.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8703, allocations: 4 kB / 0.5887 GB, free: 84.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007296/0.8776, allocations: 5.573 MB / 0.5941 GB, free: 79.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/0.8793, allocations: 0.6636 MB / 0.5948 GB, free: 78.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004682/0.8798, allocations: 55.98 kB / 0.5948 GB, free: 78.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.8812, allocations: 131.9 kB / 0.595 GB, free: 78.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003728/0.8816, allocations: 173.6 kB / 0.5951 GB, free: 77.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.8817, allocations: 67.83 kB / 0.5952 GB, free: 77.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.8843, allocations: 1.967 MB / 0.5971 GB, free: 75.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8843, allocations: 2.078 kB / 0.5971 GB, free: 75.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003088/0.8874, allocations: 0.9317 MB / 0.598 GB, free: 75.04 MB / 462.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.007099/0.8945, allocations: 6.274 MB / 0.6042 GB, free: 68.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005122/0.8996, allocations: 3.974 MB / 0.608 GB, free: 64.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.8997, allocations: 4.875 kB / 0.608 GB, free: 64.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003183/0.9029, allocations: 2.667 MB / 0.6107 GB, free: 61.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00363/0.9065, allocations: 0.8515 MB / 0.6115 GB, free: 60.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04125/0.9478, allocations: 33.4 MB / 0.6441 GB, free: 26.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002417/0.9502, allocations: 3.298 MB / 0.6473 GB, free: 22.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001966/0.9522, allocations: 0.7617 MB / 0.6481 GB, free: 22.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001891/0.9541, allocations: 1.944 MB / 0.65 GB, free: 20.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/0.9541, allocations: 0 / 0.65 GB, free: 20.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1489/1.103, allocations: 81.79 MB / 0.7298 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.86/16.97, allocations: 7.797 kB / 0.7298 GB, free: 3.172 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches