Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001268/0.001268, allocations: 111.4 kB / 16.92 MB, free: 5.895 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.001171/0.001171, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.333/1.333, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009724/0.0009724, allocations: 47.17 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1172, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2845/0.4018, allocations: 21.73 MB / 371.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.4167, allocations: 6.386 MB / 378.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004964/0.4217, allocations: 139.1 kB / 378.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005322/0.427, allocations: 1.489 MB / 379.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009904/0.437, allocations: 2.071 MB / 382 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005062/0.4421, allocations: 1.282 MB / 383.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009987/0.4521, allocations: 6.49 MB / 389.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008074/0.4602, allocations: 5.582 MB / 395.3 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006536/0.4668, allocations: 2.978 MB / 398.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006165/0.473, allocations: 3.56 MB / 401.9 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002628/0.4756, allocations: 0.817 MB / 402.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.48, allocations: 1.11 MB / 403.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0029/0.4829, allocations: 2.027 MB / 405.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006718/0.4896, allocations: 3.543 MB / 409.4 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.5024, allocations: 10.69 MB / 420.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.5024, allocations: 4 kB / 420.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5024, allocations: 0 / 420.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003274/0.5028, allocations: 0 / 420.1 MB, free: 13.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01842/0.5212, allocations: 6.922 MB / 427 MB, free: 6.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.5212, allocations: 11.89 kB / 427 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001279/0.5225, allocations: 0.7276 MB / 427.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004773/0.5273, allocations: 1.073 MB / 428.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006768/0.5341, allocations: 3.636 MB / 432.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003534/0.5345, allocations: 421.3 kB / 432.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001194/0.5357, allocations: 0.5323 MB / 433.4 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.5483, allocations: 7.052 MB / 440.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001302/0.5485, allocations: 11.91 kB / 440.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005102/0.549, allocations: 221.2 kB / 440.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002412/0.5492, allocations: 266.5 kB / 440.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.5612, allocations: 5.948 MB / 446.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05736/0.6186, allocations: 22.42 MB / 469.3 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009105/0.6277, allocations: 8.28 MB / 477.6 MB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004541/0.6323, allocations: 2.193 MB / 479.8 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01379/0.6461, allocations: 6.185 MB / 486 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.6462, allocations: 60.56 kB / 486 MB, free: 10.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 4.639e-06/0.6462, allocations: 0 / 486 MB, free: 10.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02303/0.6693, allocations: 11.03 MB / 497.1 MB, free: 15.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.6694, allocations: 81.34 kB / 497.1 MB, free: 14.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005005/0.6744, allocations: 3.144 MB / 0.4885 GB, free: 11.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002509/0.6746, allocations: 65.7 kB / 0.4886 GB, free: 11.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.6763, allocations: 2.508 MB / 0.4911 GB, free: 9.223 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/0.677, allocations: 0.8266 MB / 0.4919 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009249/0.6779, allocations: 0.5614 MB / 0.4924 GB, free: 7.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.938e-05/0.678, allocations: 301.1 kB / 0.4927 GB, free: 7.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/0.6802, allocations: 1.334 MB / 0.494 GB, free: 6.199 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002862/0.6831, allocations: 2.343 MB / 0.4963 GB, free: 3.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005353/0.6884, allocations: 3.912 MB / 0.5001 GB, free: 15.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.36e-05/0.6885, allocations: 12 kB / 0.5001 GB, free: 15.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008077/0.6966, allocations: 4.709 MB / 0.5047 GB, free: 10.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.6966, allocations: 20 kB / 0.5047 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.903e-05/0.6967, allocations: 35.94 kB / 0.5048 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.6979, allocations: 0.5254 MB / 0.5053 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.7007, allocations: 0.7371 MB / 0.506 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008828/0.7095, allocations: 10.29 MB / 0.5161 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/0.7127, allocations: 183.8 kB / 0.5162 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005395/0.7132, allocations: 144 kB / 0.5164 GB, free: 13.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.003167/0.7164, allocations: 1.57 MB / 0.5179 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/0.7175, allocations: 347.7 kB / 0.5182 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007421/0.7249, allocations: 4.064 MB / 0.5222 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/0.725, allocations: 27.94 kB / 0.5222 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.428e-05/0.725, allocations: 8 kB / 0.5222 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/0.7251, allocations: 11.95 kB / 0.5223 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1939/0.919, allocations: 8.973 MB / 0.531 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/0.919, allocations: 4.25 kB / 0.531 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.921, allocations: 413.4 kB / 0.5314 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/0.923, allocations: 0.7368 MB / 0.5321 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003207/0.9233, allocations: 65.73 kB / 0.5322 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/0.9363, allocations: 16.76 MB / 0.5486 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/0.9364, allocations: 8.812 kB / 0.5486 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.9474, allocations: 5.853 MB / 0.5543 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/0.9493, allocations: 0.6893 MB / 0.555 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007315/0.9501, allocations: 57.31 kB / 0.555 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.9518, allocations: 138.6 kB / 0.5551 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004622/0.9523, allocations: 181.4 kB / 0.5553 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.9525, allocations: 82.28 kB / 0.5554 GB, free: 125.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003084/0.9556, allocations: 2.119 MB / 0.5575 GB, free: 124.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9556, allocations: 0 / 0.5575 GB, free: 124.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003938/0.9595, allocations: 0.999 MB / 0.5584 GB, free: 124.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007951/0.9675, allocations: 6.553 MB / 0.5648 GB, free: 121 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009925/0.9774, allocations: 5.719 MB / 0.5704 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.9775, allocations: 2 kB / 0.5704 GB, free: 119 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003439/0.9809, allocations: 2.741 MB / 0.5731 GB, free: 117.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0043/0.9852, allocations: 0.9557 MB / 0.574 GB, free: 117.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04795/1.033, allocations: 43.11 MB / 0.6161 GB, free: 71.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002691/1.036, allocations: 3.41 MB / 0.6195 GB, free: 68.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002657/1.039, allocations: 0.8112 MB / 0.6203 GB, free: 67.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002211/1.041, allocations: 2.1 MB / 0.6223 GB, free: 65.42 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/1.041, allocations: 0 / 0.6223 GB, free: 65.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3024/1.343, allocations: 89.35 MB / 0.7096 GB, free: 140.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.83, allocations: 15.33 kB / 0.7096 GB, free: 140.8 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches