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.001698/0.001698, allocations: 109.2 kB / 17.73 MB, free: 5.297 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.001469/0.001469, allocations: 188.2 kB / 18.67 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.1 MB / 224.5 MB, free: 12.18 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.001876/0.001876, allocations: 51.92 kB / 328 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.1004, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2132/0.3136, allocations: 20.23 MB / 394.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.331, allocations: 5.934 MB / 400.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006393/0.3375, allocations: 124.2 kB / 401 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006344/0.3439, allocations: 1.345 MB / 402.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.3542, allocations: 1.903 MB / 404.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005379/0.3596, allocations: 1.253 MB / 405.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.3725, allocations: 6.108 MB / 411.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01245/0.3851, allocations: 5.375 MB / 416.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007492/0.3926, allocations: 2.816 MB / 419.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00831/0.401, allocations: 3.385 MB / 423.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003007/0.4041, allocations: 0.7812 MB / 423.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005256/0.4094, allocations: 1.07 MB / 425 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003743/0.4131, allocations: 1.944 MB / 426.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00878/0.422, allocations: 3.349 MB / 430.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01871/0.4407, allocations: 10.33 MB / 440.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.4408, allocations: 4 kB / 440.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4408, allocations: 4 kB / 440.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003706/0.4412, allocations: 0 / 440.6 MB, free: 13.79 MB / 366.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.0211/0.4623, allocations: 6.727 MB / 447.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.4624, allocations: 8.031 kB / 447.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001451/0.4638, allocations: 0.7039 MB / 448.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005129/0.469, allocations: 1.039 MB / 449.1 MB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008063/0.4771, allocations: 3.363 MB / 452.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.4775, allocations: 386.8 kB / 452.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/0.4792, allocations: 0.5076 MB / 453.4 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01679/0.496, allocations: 6.767 MB / 460.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001692/0.4963, allocations: 11.94 kB / 460.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007484/0.497, allocations: 212 kB / 460.3 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/0.4973, allocations: 242.2 kB / 460.6 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.5109, allocations: 5.74 MB / 466.3 MB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04708/0.5581, allocations: 20.89 MB / 487.2 MB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/0.5705, allocations: 8.56 MB / 495.8 MB, free: 4.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004554/0.5751, allocations: 2.085 MB / 497.8 MB, free: 2.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/0.5881, allocations: 5.924 MB / 0.492 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.2e-05/0.5882, allocations: 56.56 kB / 0.492 GB, free: 12.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 4.108e-06/0.5883, allocations: 0 / 0.492 GB, free: 12.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02617/0.6144, allocations: 10.36 MB / 0.5021 GB, free: 2.133 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.6145, allocations: 73.41 kB / 0.5022 GB, free: 2.051 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005994/0.6205, allocations: 2.912 MB / 0.505 GB, free: 15.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00047/0.621, allocations: 61.7 kB / 0.5051 GB, free: 15.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002265/0.6233, allocations: 2.419 MB / 0.5075 GB, free: 12.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/0.6246, allocations: 0.8018 MB / 0.5082 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/0.6256, allocations: 0.5179 MB / 0.5088 GB, free: 11.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002485/0.6259, allocations: 301.1 kB / 0.509 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.6283, allocations: 1.271 MB / 0.5103 GB, free: 9.719 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003378/0.6317, allocations: 2.175 MB / 0.5124 GB, free: 7.141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006342/0.6381, allocations: 3.676 MB / 0.516 GB, free: 3.066 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.503e-05/0.6382, allocations: 8 kB / 0.516 GB, free: 3.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009594/0.6478, allocations: 4.468 MB / 0.5204 GB, free: 14.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.6479, allocations: 19.94 kB / 0.5204 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.349e-05/0.6479, allocations: 28 kB / 0.5204 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.6493, allocations: 0.5059 MB / 0.5209 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003077/0.6524, allocations: 0.7019 MB / 0.5216 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.6644, allocations: 10.18 MB / 0.5315 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/0.6675, allocations: 179.8 kB / 0.5317 GB, free: 2.188 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004449/0.6679, allocations: 128 kB / 0.5318 GB, free: 2.062 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.004171/0.6721, allocations: 1.52 MB / 0.5333 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/0.6732, allocations: 333.9 kB / 0.5336 GB, free: 208 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008764/0.682, allocations: 3.871 MB / 0.5374 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/0.682, allocations: 20 kB / 0.5374 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.411e-05/0.6821, allocations: 11.94 kB / 0.5374 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-05/0.6821, allocations: 11.97 kB / 0.5375 GB, free: 12.19 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/0.7024, allocations: 8.472 MB / 0.5457 GB, free: 3.527 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/0.7025, allocations: 4 kB / 0.5457 GB, free: 3.523 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/0.7045, allocations: 379.5 kB / 0.5461 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002322/0.7068, allocations: 0.7288 MB / 0.5468 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003908/0.7072, allocations: 59.97 kB / 0.5469 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2254/0.9327, allocations: 16.62 MB / 0.5631 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.9327, allocations: 10.19 kB / 0.5631 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.943, allocations: 5.564 MB / 0.5685 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001918/0.945, allocations: 0.6679 MB / 0.5692 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008645/0.9459, allocations: 51.91 kB / 0.5692 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.9477, allocations: 136.3 kB / 0.5694 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006035/0.9483, allocations: 169.7 kB / 0.5695 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/0.9485, allocations: 66.41 kB / 0.5696 GB, free: 132.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004175/0.9527, allocations: 1.963 MB / 0.5715 GB, free: 131.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9527, allocations: 0 / 0.5715 GB, free: 131.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004758/0.9575, allocations: 0.9353 MB / 0.5724 GB, free: 131.6 MB / 478.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.01108/0.9686, allocations: 6.272 MB / 0.5785 GB, free: 128.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006846/0.9755, allocations: 3.974 MB / 0.5824 GB, free: 126.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/0.9755, allocations: 1.375 kB / 0.5824 GB, free: 126.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004676/0.9802, allocations: 2.658 MB / 0.585 GB, free: 125.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005401/0.9857, allocations: 0.8542 MB / 0.5859 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04689/1.033, allocations: 33.45 MB / 0.6185 GB, free: 97.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002759/1.035, allocations: 3.298 MB / 0.6217 GB, free: 94.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002497/1.038, allocations: 0.7578 MB / 0.6225 GB, free: 93.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/1.04, allocations: 1.94 MB / 0.6244 GB, free: 91.66 MB / 478.1 MB Notification: Performance of SimCode: time 1.021e-06/1.04, allocations: 3.938 kB / 0.6244 GB, free: 91.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1766/1.217, allocations: 81.81 MB / 0.7043 GB, free: 9.695 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.71/17.93, allocations: 12.7 kB / 0.7043 GB, free: 9.684 MB / 478.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