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.00125/0.00125, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001322/0.001322, allocations: 190 kB / 18.07 MB, free: 5.414 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.33/1.33, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001125/0.001125, allocations: 47.92 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.09529, allocations: 46.62 MB / 326.7 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02345/0.1188, allocations: 23.36 MB / 350.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.132, allocations: 6.464 MB / 356.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005449/0.1375, allocations: 135.4 kB / 356.7 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005676/0.1433, allocations: 1.34 MB / 358 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00788/0.1512, allocations: 1.908 MB / 359.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004316/0.1555, allocations: 1.33 MB / 361.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.1668, allocations: 8.52 MB / 369.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009135/0.176, allocations: 5.957 MB / 375.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005324/0.1813, allocations: 3.075 MB / 378.8 MB, free: 420 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2096/0.3909, allocations: 4.068 MB / 382.9 MB, free: 18.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002305/0.3932, allocations: 0.6352 MB / 383.5 MB, free: 18.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003318/0.3966, allocations: 0.854 MB / 384.3 MB, free: 18.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002238/0.3988, allocations: 1.952 MB / 386.3 MB, free: 18.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0072/0.406, allocations: 4.026 MB / 390.3 MB, free: 17.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.4175, allocations: 13.71 MB / 404 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4175, allocations: 3.938 kB / 404 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4175, allocations: 0.6562 kB / 404 MB, free: 12.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003717/0.4179, allocations: 0.5 kB / 404 MB, free: 12.22 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.02294/0.4409, allocations: 8.811 MB / 412.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.4409, allocations: 8.75 kB / 412.9 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002263/0.4432, allocations: 0.9555 MB / 413.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008565/0.4518, allocations: 1.675 MB / 415.5 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009719/0.4615, allocations: 4.409 MB / 419.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000582/0.4622, allocations: 0.5277 MB / 420.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003018/0.4652, allocations: 0.6822 MB / 421.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02928/0.4945, allocations: 9.439 MB / 430.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003173/0.4948, allocations: 8.094 kB / 430.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002537/0.4974, allocations: 283 kB / 430.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003804/0.4978, allocations: 334.2 kB / 431.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.5168, allocations: 8.046 MB / 439.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06309/0.5799, allocations: 28.81 MB / 468 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01494/0.5949, allocations: 16.58 MB / 484.6 MB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005429/0.6004, allocations: 2.941 MB / 487.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01557/0.616, allocations: 7.722 MB / 495.2 MB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.733e-05/0.6161, allocations: 60.61 kB / 495.3 MB, free: 7.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 4.719e-06/0.6161, allocations: 0 / 495.3 MB, free: 7.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.02377/0.6399, allocations: 10.99 MB / 0.4944 GB, free: 11.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.64, allocations: 81.5 kB / 0.4945 GB, free: 11.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006611/0.6466, allocations: 3.377 MB / 0.4978 GB, free: 8.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000276/0.6469, allocations: 69.7 kB / 0.4979 GB, free: 8.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002237/0.6492, allocations: 3.037 MB / 0.5008 GB, free: 5.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009042/0.6501, allocations: 0.9179 MB / 0.5017 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.6511, allocations: 0.5896 MB / 0.5023 GB, free: 3.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.771e-05/0.6512, allocations: 305.1 kB / 0.5026 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002336/0.6536, allocations: 1.397 MB / 0.504 GB, free: 2.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003032/0.6566, allocations: 2.427 MB / 0.5063 GB, free: 15.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00561/0.6622, allocations: 4.08 MB / 0.5103 GB, free: 10.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.273e-05/0.6623, allocations: 8 kB / 0.5103 GB, free: 10.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008317/0.6706, allocations: 4.696 MB / 0.5149 GB, free: 6.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.6707, allocations: 35.14 kB / 0.5149 GB, free: 6.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.162e-05/0.6708, allocations: 32.72 kB / 0.515 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.6719, allocations: 400.5 kB / 0.5154 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002844/0.6747, allocations: 0.7947 MB / 0.5161 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007108/0.6818, allocations: 7.334 MB / 0.5233 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00428/0.6862, allocations: 163.9 kB / 0.5234 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008396/0.687, allocations: 152 kB / 0.5236 GB, free: 12.82 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.006533/0.6936, allocations: 2.067 MB / 0.5256 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001458/0.6951, allocations: 371.5 kB / 0.526 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008417/0.7035, allocations: 4.22 MB / 0.5301 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.061e-05/0.7035, allocations: 28 kB / 0.5301 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.202e-05/0.7036, allocations: 15.94 kB / 0.5301 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.881e-05/0.7036, allocations: 11.95 kB / 0.5301 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1654/0.8691, allocations: 9.87 MB / 0.5398 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.8691, allocations: 3.781 kB / 0.5398 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/0.8709, allocations: 406.5 kB / 0.5402 GB, free: 154.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002553/0.8735, allocations: 0.8604 MB / 0.541 GB, free: 154.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/0.8737, allocations: 72.64 kB / 0.5411 GB, free: 154.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/0.8915, allocations: 16.06 MB / 0.5568 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.8915, allocations: 3.719 kB / 0.5568 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009639/0.9012, allocations: 6.021 MB / 0.5626 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/0.903, allocations: 0.7452 MB / 0.5634 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005253/0.9035, allocations: 63.69 kB / 0.5634 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.9051, allocations: 135.2 kB / 0.5636 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005596/0.9057, allocations: 199.1 kB / 0.5638 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/0.9058, allocations: 81.69 kB / 0.5638 GB, free: 139.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003536/0.9094, allocations: 2.298 MB / 0.5661 GB, free: 138.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9094, allocations: 3.719 kB / 0.5661 GB, free: 138.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004383/0.9138, allocations: 1.138 MB / 0.5672 GB, free: 138.1 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.008577/0.9224, allocations: 6.69 MB / 0.5737 GB, free: 134.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005306/0.9277, allocations: 4.107 MB / 0.5777 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.9277, allocations: 0 / 0.5777 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003435/0.9311, allocations: 2.849 MB / 0.5805 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004395/0.9356, allocations: 0.9579 MB / 0.5815 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07447/1.01, allocations: 50.61 MB / 0.6309 GB, free: 74.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/1.013, allocations: 4.236 MB / 0.635 GB, free: 70.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00258/1.016, allocations: 0.8326 MB / 0.6358 GB, free: 69.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002281/1.018, allocations: 2.538 MB / 0.6383 GB, free: 67.12 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/1.018, allocations: 0 / 0.6383 GB, free: 67.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4236/1.442, allocations: 97.68 MB / 0.7337 GB, free: 143.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/1.442, allocations: 267.2 kB / 0.734 GB, free: 142.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.901/5.343, allocations: 0.7031 kB / 0.734 GB, free: 142.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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","../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