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.001438/0.001438, allocations: 113.7 kB / 17.06 MB, free: 6.004 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.001552/0.001552, allocations: 200 kB / 18 MB, free: 5.082 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 43.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2767, allocations: 49.45 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02326/0.3, allocations: 20.29 MB / 420.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.3119, allocations: 5.911 MB / 426.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.3155, allocations: 135.4 kB / 426.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004228/0.3197, allocations: 1.343 MB / 427.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00706/0.3269, allocations: 1.926 MB / 429.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003824/0.3307, allocations: 1.217 MB / 431.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009349/0.3401, allocations: 6.124 MB / 437.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00944/0.3496, allocations: 5.426 MB / 442.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00573/0.3554, allocations: 2.854 MB / 445.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00625/0.3617, allocations: 3.386 MB / 448.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002508/0.3642, allocations: 0.7812 MB / 449.6 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003823/0.3681, allocations: 1.07 MB / 450.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003775/0.3719, allocations: 1.94 MB / 452.7 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006446/0.3784, allocations: 3.357 MB / 456 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.391, allocations: 10.3 MB / 466.3 MB, free: 6.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3911, allocations: 11.88 kB / 466.3 MB, free: 6.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3911, allocations: 0 / 466.3 MB, free: 6.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003132/0.3914, allocations: 0 / 466.3 MB, free: 6.43 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.01852/0.41, allocations: 6.582 MB / 472.9 MB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.41, allocations: 11.89 kB / 472.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002087/0.4121, allocations: 0.7 MB / 473.6 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005279/0.4174, allocations: 1.005 MB / 474.6 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00803/0.4255, allocations: 3.579 MB / 478.2 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003786/0.4259, allocations: 386.6 kB / 478.6 MB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001676/0.4276, allocations: 0.4998 MB / 479.1 MB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02226/0.4499, allocations: 6.783 MB / 485.9 MB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002562/0.4502, allocations: 11.89 kB / 485.9 MB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001405/0.4516, allocations: 208 kB / 486.1 MB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003991/0.4521, allocations: 242.2 kB / 486.3 MB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/0.4747, allocations: 5.752 MB / 492.1 MB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06092/0.5357, allocations: 20.84 MB / 0.5009 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01348/0.5492, allocations: 8.531 MB / 0.5092 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005777/0.5551, allocations: 2.097 MB / 0.5113 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01826/0.5734, allocations: 5.917 MB / 0.517 GB, free: 5.449 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.363e-05/0.5735, allocations: 60.56 kB / 0.5171 GB, free: 5.379 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 7.363e-06/0.5735, allocations: 4 kB / 0.5171 GB, free: 5.375 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.03421/0.6078, allocations: 10.37 MB / 0.5272 GB, free: 10.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/0.6079, allocations: 77.41 kB / 0.5273 GB, free: 10.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007115/0.615, allocations: 2.9 MB / 0.5301 GB, free: 7.762 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000403/0.6154, allocations: 61.7 kB / 0.5302 GB, free: 7.695 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002586/0.618, allocations: 2.365 MB / 0.5325 GB, free: 5.305 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.6193, allocations: 0.7625 MB / 0.5332 GB, free: 4.531 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001731/0.621, allocations: 0.5177 MB / 0.5337 GB, free: 4.004 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.6212, allocations: 305.1 kB / 0.534 GB, free: 3.703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003189/0.6244, allocations: 1.271 MB / 0.5353 GB, free: 2.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2688/0.8932, allocations: 2.174 MB / 0.5374 GB, free: 125.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008572/0.9018, allocations: 3.664 MB / 0.541 GB, free: 123.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-05/0.9019, allocations: 7.656 kB / 0.541 GB, free: 123.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01096/0.9129, allocations: 4.446 MB / 0.5453 GB, free: 121.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.9129, allocations: 20.19 kB / 0.5454 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.058e-05/0.913, allocations: 31.53 kB / 0.5454 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/0.9147, allocations: 0.5138 MB / 0.5459 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/0.9189, allocations: 0.6816 MB / 0.5465 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.9294, allocations: 10.19 MB / 0.5565 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/0.9332, allocations: 174.1 kB / 0.5567 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003861/0.9336, allocations: 128 kB / 0.5568 GB, free: 113.1 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.003218/0.9368, allocations: 1.52 MB / 0.5583 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007823/0.9376, allocations: 317.6 kB / 0.5586 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008977/0.9466, allocations: 3.885 MB / 0.5624 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.9467, allocations: 21.69 kB / 0.5624 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/0.9467, allocations: 7.5 kB / 0.5624 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.753e-05/0.9468, allocations: 15.42 kB / 0.5624 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01891/0.9657, allocations: 8.462 MB / 0.5707 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.9658, allocations: 4.469 kB / 0.5707 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002619/0.9684, allocations: 387.4 kB / 0.571 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002719/0.9711, allocations: 0.7192 MB / 0.5717 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003083/0.9715, allocations: 59.97 kB / 0.5718 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/0.9884, allocations: 16.62 MB / 0.588 GB, free: 84.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.9884, allocations: 7.938 kB / 0.588 GB, free: 84.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/1, allocations: 5.562 MB / 0.5935 GB, free: 79.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.002, allocations: 0.6539 MB / 0.5941 GB, free: 78.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007488/1.003, allocations: 51.98 kB / 0.5942 GB, free: 78.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002602/1.006, allocations: 127.9 kB / 0.5943 GB, free: 78.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005477/1.006, allocations: 169.7 kB / 0.5945 GB, free: 78.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.007, allocations: 70.25 kB / 0.5945 GB, free: 78.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003924/1.011, allocations: 1.963 MB / 0.5964 GB, free: 76.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.011, allocations: 0 / 0.5964 GB, free: 76.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004823/1.015, allocations: 0.9339 MB / 0.5973 GB, free: 75.34 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.01252/1.028, allocations: 6.27 MB / 0.6035 GB, free: 68.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008297/1.036, allocations: 3.96 MB / 0.6073 GB, free: 64.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.036, allocations: 0.5 kB / 0.6073 GB, free: 64.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005622/1.042, allocations: 2.681 MB / 0.61 GB, free: 62.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005864/1.048, allocations: 0.8405 MB / 0.6108 GB, free: 61.28 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04981/1.098, allocations: 33.23 MB / 0.6432 GB, free: 26.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002533/1.1, allocations: 3.298 MB / 0.6464 GB, free: 23.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002116/1.102, allocations: 0.7617 MB / 0.6472 GB, free: 22.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001895/1.104, allocations: 1.944 MB / 0.6491 GB, free: 20.77 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/1.104, allocations: 0 / 0.6491 GB, free: 20.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1333/1.238, allocations: 82.47 MB / 0.7296 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/21.49, allocations: 14.5 kB / 0.7296 GB, free: 3.016 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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