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.001216/0.001216, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001187/0.001187, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001376/0.001376, allocations: 56.39 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09189, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2196/0.3116, allocations: 20.23 MB / 394.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.3269, allocations: 5.943 MB / 400.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005874/0.3329, allocations: 115.8 kB / 401 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005153/0.3381, allocations: 1.397 MB / 402.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008767/0.3469, allocations: 1.976 MB / 404.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004659/0.3516, allocations: 1.245 MB / 405.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.3628, allocations: 6.112 MB / 411.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008668/0.3715, allocations: 5.365 MB / 417 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005904/0.3774, allocations: 2.842 MB / 419.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006643/0.3841, allocations: 3.392 MB / 423.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002543/0.3867, allocations: 0.7812 MB / 424.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004389/0.3911, allocations: 1.07 MB / 425.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003539/0.3947, allocations: 1.944 MB / 427.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008572/0.4033, allocations: 3.353 MB / 430.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.4184, allocations: 10.33 MB / 440.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4184, allocations: 0 / 440.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4184, allocations: 4 kB / 440.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003033/0.4188, allocations: 0 / 440.8 MB, free: 13.67 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.01946/0.4382, allocations: 6.727 MB / 447.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4383, allocations: 12.03 kB / 447.5 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001939/0.4402, allocations: 0.6961 MB / 448.2 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00561/0.4459, allocations: 1.04 MB / 449.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008259/0.4542, allocations: 3.363 MB / 452.6 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004615/0.4547, allocations: 382.8 kB / 453 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.4565, allocations: 0.5115 MB / 453.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.474, allocations: 6.763 MB / 460.3 MB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.4742, allocations: 23.88 kB / 460.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005978/0.4748, allocations: 208 kB / 460.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/0.4751, allocations: 238.2 kB / 460.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/0.4867, allocations: 5.74 MB / 466.5 MB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.5285, allocations: 20.9 MB / 487.3 MB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01005/0.5386, allocations: 8.548 MB / 495.9 MB, free: 4.824 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003692/0.5424, allocations: 2.097 MB / 498 MB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.5545, allocations: 5.916 MB / 0.4921 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/0.5546, allocations: 56.56 kB / 0.4922 GB, free: 12.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.767e-06/0.5546, allocations: 3.938 kB / 0.4922 GB, free: 12.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02313/0.5778, allocations: 10.35 MB / 0.5023 GB, free: 2.027 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.5779, allocations: 73.41 kB / 0.5023 GB, free: 1.945 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005237/0.5831, allocations: 2.908 MB / 0.5052 GB, free: 15.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000445/0.5836, allocations: 65.7 kB / 0.5052 GB, free: 14.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/0.5854, allocations: 2.427 MB / 0.5076 GB, free: 12.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009846/0.5864, allocations: 0.8018 MB / 0.5084 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008852/0.5873, allocations: 0.5179 MB / 0.5089 GB, free: 11.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.54e-05/0.5874, allocations: 305.1 kB / 0.5092 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.5897, allocations: 1.267 MB / 0.5104 GB, free: 9.605 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002805/0.5925, allocations: 2.183 MB / 0.5126 GB, free: 7.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005391/0.5979, allocations: 3.664 MB / 0.5161 GB, free: 2.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.711e-05/0.598, allocations: 12 kB / 0.5161 GB, free: 2.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008319/0.6063, allocations: 4.464 MB / 0.5205 GB, free: 14.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.6064, allocations: 16 kB / 0.5205 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.023e-05/0.6065, allocations: 28 kB / 0.5205 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.6077, allocations: 0.5174 MB / 0.521 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/0.6106, allocations: 0.6902 MB / 0.5217 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009926/0.6206, allocations: 10.2 MB / 0.5317 GB, free: 2.246 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/0.624, allocations: 171.8 kB / 0.5318 GB, free: 2.078 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005252/0.6245, allocations: 128 kB / 0.532 GB, free: 1.953 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.004803/0.6293, allocations: 1.52 MB / 0.5335 GB, free: 432 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/0.6304, allocations: 329.9 kB / 0.5338 GB, free: 100 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00758/0.638, allocations: 3.883 MB / 0.5376 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.6381, allocations: 24 kB / 0.5376 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.393e-05/0.6381, allocations: 11.94 kB / 0.5376 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.525e-05/0.6382, allocations: 7.969 kB / 0.5376 GB, free: 12.07 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/0.6565, allocations: 8.469 MB / 0.5459 GB, free: 3.414 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/0.6566, allocations: 4.469 kB / 0.5459 GB, free: 3.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/0.6585, allocations: 387.4 kB / 0.5462 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.6606, allocations: 0.7247 MB / 0.547 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003411/0.661, allocations: 63.97 kB / 0.547 GB, free: 2.219 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2178/0.8788, allocations: 16.61 MB / 0.5632 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.8788, allocations: 5.359 kB / 0.5632 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.889, allocations: 5.572 MB / 0.5687 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/0.8913, allocations: 0.6706 MB / 0.5693 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009177/0.8922, allocations: 52.62 kB / 0.5694 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002188/0.8944, allocations: 133.2 kB / 0.5695 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000581/0.895, allocations: 167.4 kB / 0.5697 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002078/0.8952, allocations: 75 kB / 0.5697 GB, free: 132 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004137/0.8994, allocations: 1.965 MB / 0.5717 GB, free: 131.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.8994, allocations: 0 / 0.5717 GB, free: 131.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00497/0.9044, allocations: 0.9299 MB / 0.5726 GB, free: 131.2 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.01189/0.9163, allocations: 6.275 MB / 0.5787 GB, free: 128.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007736/0.9241, allocations: 3.971 MB / 0.5826 GB, free: 126.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/0.9242, allocations: 1.344 kB / 0.5826 GB, free: 126.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004944/0.9291, allocations: 2.665 MB / 0.5852 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005812/0.935, allocations: 0.842 MB / 0.586 GB, free: 124.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05393/0.989, allocations: 33.45 MB / 0.6187 GB, free: 97.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/0.9927, allocations: 3.294 MB / 0.6219 GB, free: 94.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00263/0.9953, allocations: 0.7539 MB / 0.6226 GB, free: 93.35 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002946/0.9983, allocations: 1.944 MB / 0.6245 GB, free: 91.41 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9983, allocations: 0 / 0.6245 GB, free: 91.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1354/1.134, allocations: 81.82 MB / 0.7044 GB, free: 9.438 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.47/17.61, allocations: 16.73 kB / 0.7044 GB, free: 9.422 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