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.001603/0.001603, allocations: 108.6 kB / 16.51 MB, free: 6.691 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.001644/0.001644, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.342/1.342, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 42.59 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09835, allocations: 49.45 MB / 349.5 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.0228/0.1212, allocations: 20.02 MB / 369.5 MB, free: 432 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1785/0.2997, allocations: 5.843 MB / 375.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.3024, allocations: 127.7 kB / 375.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0029/0.3053, allocations: 1.157 MB / 376.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004315/0.3097, allocations: 1.733 MB / 378.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.3119, allocations: 1.117 MB / 379.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006702/0.3187, allocations: 6.65 MB / 386.2 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005333/0.324, allocations: 4.559 MB / 390.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003252/0.3273, allocations: 2.37 MB / 393.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003428/0.3307, allocations: 3.186 MB / 396.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009569/0.3317, allocations: 477.2 kB / 396.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002128/0.3338, allocations: 0.7651 MB / 397.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.335, allocations: 1.617 MB / 399.1 MB, free: 464 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004841/0.3399, allocations: 3.004 MB / 402.1 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009386/0.3493, allocations: 9.979 MB / 412.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3493, allocations: 0 / 412.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3493, allocations: 0 / 412.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001977/0.3495, allocations: 4 kB / 412.1 MB, free: 4.066 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.0138/0.3633, allocations: 6.565 MB / 418.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3634, allocations: 12.03 kB / 418.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009072/0.3643, allocations: 0.7066 MB / 419.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004446/0.3687, allocations: 1.011 MB / 420.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006267/0.375, allocations: 3.422 MB / 423.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/0.3754, allocations: 397.5 kB / 424.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009416/0.3763, allocations: 0.5069 MB / 424.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.3898, allocations: 6.782 MB / 431.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.39, allocations: 7.906 kB / 431.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00072/0.3907, allocations: 210.6 kB / 431.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002686/0.391, allocations: 250.1 kB / 432 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/0.4041, allocations: 5.752 MB / 437.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04083/0.445, allocations: 21.09 MB / 458.8 MB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008963/0.454, allocations: 8.535 MB / 467.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003565/0.4576, allocations: 2.131 MB / 469.5 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.4687, allocations: 5.93 MB / 475.4 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.4687, allocations: 56.5 kB / 475.5 MB, free: 3.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.707e-06/0.4687, allocations: 0 / 475.5 MB, free: 3.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02038/0.4891, allocations: 10.37 MB / 485.8 MB, free: 8.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.4892, allocations: 81.34 kB / 485.9 MB, free: 8.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004609/0.4938, allocations: 2.9 MB / 488.8 MB, free: 5.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.494, allocations: 69.7 kB / 488.9 MB, free: 5.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001588/0.4956, allocations: 2.352 MB / 491.2 MB, free: 3.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005993/0.4962, allocations: 0.7668 MB / 492 MB, free: 2.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007785/0.497, allocations: 0.5138 MB / 492.5 MB, free: 1.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.4971, allocations: 301.1 kB / 492.8 MB, free: 1.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/0.4992, allocations: 1.271 MB / 494.1 MB, free: 316 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002562/0.5017, allocations: 2.175 MB / 496.3 MB, free: 13.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004738/0.5065, allocations: 3.672 MB / 499.9 MB, free: 9.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/0.5065, allocations: 8 kB / 499.9 MB, free: 9.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00699/0.5135, allocations: 4.438 MB / 0.4925 GB, free: 5.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.5135, allocations: 20 kB / 0.4926 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-05/0.5136, allocations: 28 kB / 0.4926 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.5147, allocations: 0.5209 MB / 0.4931 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/0.5171, allocations: 0.6903 MB / 0.4938 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007988/0.5251, allocations: 9.337 MB / 0.5029 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002143/0.5272, allocations: 175.7 kB / 0.5031 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.5275, allocations: 132 kB / 0.5032 GB, free: 9.562 MB / 430.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.002738/0.5303, allocations: 1.53 MB / 0.5047 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007355/0.531, allocations: 312.2 kB / 0.505 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006772/0.5378, allocations: 3.875 MB / 0.5088 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.5378, allocations: 24 kB / 0.5088 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/0.5378, allocations: 8 kB / 0.5088 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/0.5379, allocations: 11.95 kB / 0.5088 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.5517, allocations: 8.486 MB / 0.5171 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5517, allocations: 4 kB / 0.5171 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/0.5534, allocations: 379.9 kB / 0.5175 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00186/0.5552, allocations: 0.7283 MB / 0.5182 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/0.5554, allocations: 59.97 kB / 0.5182 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1753/0.7308, allocations: 15.2 MB / 0.5331 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.7308, allocations: 12.36 kB / 0.5331 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009144/0.74, allocations: 5.557 MB / 0.5385 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/0.7415, allocations: 0.6516 MB / 0.5391 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005444/0.7421, allocations: 57.61 kB / 0.5392 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.7436, allocations: 130.6 kB / 0.5393 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004319/0.744, allocations: 166.2 kB / 0.5395 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/0.7442, allocations: 64.64 kB / 0.5395 GB, free: 135.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002952/0.7471, allocations: 1.964 MB / 0.5415 GB, free: 135.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7471, allocations: 7.812 kB / 0.5415 GB, free: 135.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002894/0.75, allocations: 0.9326 MB / 0.5424 GB, free: 135 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.00799/0.758, allocations: 6.254 MB / 0.5485 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004842/0.7629, allocations: 3.954 MB / 0.5524 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.7629, allocations: 0 / 0.5524 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003185/0.7661, allocations: 2.667 MB / 0.555 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003875/0.77, allocations: 0.7944 MB / 0.5557 GB, free: 128.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05437/0.8244, allocations: 41.6 MB / 0.5964 GB, free: 90.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002305/0.8267, allocations: 3.294 MB / 0.5996 GB, free: 87.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002195/0.8289, allocations: 0.7616 MB / 0.6003 GB, free: 86.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/0.8307, allocations: 1.94 MB / 0.6022 GB, free: 84.93 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.8307, allocations: 5.859 kB / 0.6022 GB, free: 84.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09268/0.9234, allocations: 80.73 MB / 0.6811 GB, free: 4.875 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.9236, allocations: 270.7 kB / 0.6813 GB, free: 4.516 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.646/4.57, allocations: 0 / 0.6813 GB, free: 4.516 MB / 446.1 MB (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