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_MultiPhase.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_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.0017/0.0017, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001981/0.001981, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.447/2.447, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001829/0.001829, allocations: 60.14 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1225, allocations: 46.62 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.04853/0.1711, allocations: 23.71 MB / 351.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02595/0.1971, allocations: 6.542 MB / 357.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007742/0.2049, allocations: 143.4 kB / 357.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008677/0.2137, allocations: 1.575 MB / 359.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01341/0.2272, allocations: 2.112 MB / 361.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007058/0.2343, allocations: 1.454 MB / 362.9 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01742/0.2517, allocations: 8.041 MB / 371 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01559/0.2674, allocations: 7.146 MB / 378.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3183/0.5858, allocations: 3.796 MB / 381.9 MB, free: 17.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01698/0.6029, allocations: 4.405 MB / 386.3 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007667/0.6106, allocations: 1.093 MB / 387.4 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009461/0.6202, allocations: 1.314 MB / 388.7 MB, free: 17.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0086/0.6288, allocations: 2.445 MB / 391.2 MB, free: 16.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01748/0.6463, allocations: 4.513 MB / 395.7 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02945/0.6759, allocations: 14.08 MB / 409.8 MB, free: 8.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.619e-05/0.676, allocations: 0.6875 kB / 409.8 MB, free: 8.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.676, allocations: 0 / 409.8 MB, free: 8.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006911/0.6767, allocations: 4.438 kB / 409.8 MB, free: 8.742 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.05401/0.7308, allocations: 8.833 MB / 418.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.893e-05/0.7309, allocations: 9.094 kB / 418.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005784/0.7367, allocations: 0.9516 MB / 419.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02006/0.7568, allocations: 1.674 MB / 421.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0192/0.776, allocations: 4.498 MB / 425.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001153/0.7772, allocations: 0.5175 MB / 426.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004733/0.782, allocations: 0.6823 MB / 426.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04714/0.8292, allocations: 9.436 MB / 436.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005545/0.8298, allocations: 19.55 kB / 436.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003875/0.8338, allocations: 283.6 kB / 436.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006421/0.8344, allocations: 330.2 kB / 437 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03564/0.8701, allocations: 8.049 MB / 445 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/0.974, allocations: 28.8 MB / 473.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.029/1.003, allocations: 16.58 MB / 490.4 MB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009918/1.013, allocations: 2.94 MB / 493.4 MB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02996/1.043, allocations: 7.73 MB / 0.4893 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001293/1.043, allocations: 60.61 kB / 0.4894 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 1.189e-05/1.043, allocations: 0 / 0.4894 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.04813/1.091, allocations: 10.99 MB / 0.5001 GB, free: 5.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.092, allocations: 77.5 kB / 0.5002 GB, free: 5.254 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/1.104, allocations: 3.373 MB / 0.5035 GB, free: 1.887 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007653/1.105, allocations: 73.69 kB / 0.5036 GB, free: 1.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00438/1.109, allocations: 3.04 MB / 0.5065 GB, free: 14.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/1.111, allocations: 0.9203 MB / 0.5074 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003353/1.115, allocations: 0.5969 MB / 0.508 GB, free: 13.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/1.115, allocations: 305.1 kB / 0.5083 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005321/1.12, allocations: 1.393 MB / 0.5097 GB, free: 11.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006676/1.127, allocations: 2.431 MB / 0.512 GB, free: 8.664 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.14, allocations: 4.079 MB / 0.516 GB, free: 4.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.483e-05/1.14, allocations: 8 kB / 0.516 GB, free: 4.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.02042/1.161, allocations: 4.699 MB / 0.5206 GB, free: 15.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002065/1.161, allocations: 23.94 kB / 0.5206 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/1.161, allocations: 32 kB / 0.5207 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/1.164, allocations: 396.9 kB / 0.5211 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006568/1.17, allocations: 0.7972 MB / 0.5218 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.183, allocations: 7.968 MB / 0.5296 GB, free: 5.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007057/1.19, allocations: 159.9 kB / 0.5298 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001225/1.192, allocations: 152 kB / 0.5299 GB, free: 5.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009253/1.201, allocations: 2.076 MB / 0.5319 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002707/1.204, allocations: 367.5 kB / 0.5323 GB, free: 3.262 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3241/1.528, allocations: 4.217 MB / 0.5364 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.591e-05/1.528, allocations: 26.41 kB / 0.5364 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.322e-05/1.528, allocations: 12.38 kB / 0.5364 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.553e-05/1.528, allocations: 13.5 kB / 0.5365 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02971/1.558, allocations: 9.867 MB / 0.5461 GB, free: 150.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.238e-05/1.558, allocations: 4.281 kB / 0.5461 GB, free: 150.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00331/1.561, allocations: 404.6 kB / 0.5465 GB, free: 150.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003902/1.565, allocations: 0.8701 MB / 0.5473 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000623/1.566, allocations: 77.39 kB / 0.5474 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01758/1.583, allocations: 17.51 MB / 0.5645 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.583, allocations: 9.5 kB / 0.5645 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01535/1.599, allocations: 6.028 MB / 0.5704 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003249/1.602, allocations: 0.7392 MB / 0.5711 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001404/1.603, allocations: 70.69 kB / 0.5712 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/1.606, allocations: 134.2 kB / 0.5713 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006329/1.607, allocations: 198.2 kB / 0.5715 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/1.607, allocations: 78.16 kB / 0.5716 GB, free: 133.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003843/1.611, allocations: 2.296 MB / 0.5738 GB, free: 132.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.611, allocations: 4.75 kB / 0.5738 GB, free: 132.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005682/1.617, allocations: 1.147 MB / 0.5749 GB, free: 132.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,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.01251/1.629, allocations: 6.685 MB / 0.5815 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01227/1.642, allocations: 5.737 MB / 0.5871 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/1.642, allocations: 4 kB / 0.5871 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004343/1.646, allocations: 2.857 MB / 0.5899 GB, free: 121 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/1.651, allocations: 1.002 MB / 0.5909 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1082/1.76, allocations: 47.85 MB / 0.6376 GB, free: 67.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008083/1.768, allocations: 4.236 MB / 0.6417 GB, free: 63.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006924/1.775, allocations: 0.8326 MB / 0.6425 GB, free: 62.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006607/1.782, allocations: 2.534 MB / 0.645 GB, free: 60.14 MB / 446.1 MB Notification: Performance of SimCode: time 1.863e-06/1.782, allocations: 4 kB / 0.645 GB, free: 60.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5158/2.297, allocations: 100.1 MB / 0.7427 GB, free: 136.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.11/21.41, allocations: 16.05 kB / 0.7427 GB, free: 136.1 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_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_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_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_MultiPhase/SMR_Inverter_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches