Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00113/0.00113, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 200.6 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2615, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02325/0.2848, allocations: 22.37 MB / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.2993, allocations: 6.678 MB / 437.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004446/0.3038, allocations: 143.4 kB / 438 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004887/0.3087, allocations: 1.498 MB / 439.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007299/0.3161, allocations: 2.03 MB / 441.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003946/0.32, allocations: 1.333 MB / 442.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008643/0.3287, allocations: 6.579 MB / 449.4 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008201/0.3369, allocations: 5.587 MB / 455 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00451/0.3414, allocations: 3.033 MB / 458 MB, free: 24 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00566/0.3471, allocations: 3.678 MB / 461.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002184/0.3493, allocations: 0.8125 MB / 462.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.3527, allocations: 1.121 MB / 463.6 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00281/0.3555, allocations: 2.03 MB / 465.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00616/0.3617, allocations: 3.547 MB / 469.2 MB, free: 4.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01464/0.3764, allocations: 10.85 MB / 480.1 MB, free: 9.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3764, allocations: 0 / 480.1 MB, free: 9.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3764, allocations: 0 / 480.1 MB, free: 9.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003481/0.3768, allocations: 4 kB / 480.1 MB, free: 9.914 MB / 398.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.0195/0.3963, allocations: 6.945 MB / 487 MB, free: 2.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3964, allocations: 16.02 kB / 487 MB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00135/0.3977, allocations: 0.7328 MB / 487.8 MB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004986/0.4027, allocations: 1.067 MB / 488.8 MB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007563/0.4103, allocations: 3.769 MB / 492.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.4106, allocations: 414.9 kB / 493 MB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.4118, allocations: 0.5193 MB / 493.5 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.4264, allocations: 7.052 MB / 0.4888 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.4266, allocations: 19.83 kB / 0.4889 GB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006514/0.4273, allocations: 220 kB / 0.4891 GB, free: 4.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002526/0.4275, allocations: 262.6 kB / 0.4893 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.4395, allocations: 5.948 MB / 0.4951 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03707/0.4766, allocations: 22.33 MB / 0.5169 GB, free: 7.777 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008016/0.4847, allocations: 8.547 MB / 0.5253 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003804/0.4885, allocations: 2.273 MB / 0.5275 GB, free: 12.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.4995, allocations: 6.432 MB / 0.5338 GB, free: 5.379 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.4996, allocations: 60.5 kB / 0.5338 GB, free: 5.309 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 3.596e-06/0.4996, allocations: 0 / 0.5338 GB, free: 5.309 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.211/0.7106, allocations: 11.08 MB / 0.5447 GB, free: 118.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.7106, allocations: 73.09 kB / 0.5447 GB, free: 118.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.7146, allocations: 3.182 MB / 0.5478 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002401/0.7149, allocations: 65.48 kB / 0.5479 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.7162, allocations: 2.513 MB / 0.5504 GB, free: 115.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005694/0.7168, allocations: 0.8288 MB / 0.5512 GB, free: 115 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000716/0.7175, allocations: 0.5511 MB / 0.5517 GB, free: 114.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.626e-05/0.7175, allocations: 302 kB / 0.552 GB, free: 114.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/0.7194, allocations: 1.336 MB / 0.5533 GB, free: 113.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.7215, allocations: 2.35 MB / 0.5556 GB, free: 112.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/0.7256, allocations: 3.911 MB / 0.5594 GB, free: 109.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.732e-05/0.7256, allocations: 11.12 kB / 0.5594 GB, free: 109.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006693/0.7323, allocations: 4.726 MB / 0.564 GB, free: 107.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.7324, allocations: 20 kB / 0.5641 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.012e-05/0.7324, allocations: 32 kB / 0.5641 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.7335, allocations: 0.5515 MB / 0.5646 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/0.7359, allocations: 0.7359 MB / 0.5653 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006647/0.7426, allocations: 10.45 MB / 0.5755 GB, free: 95.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002784/0.7454, allocations: 199.5 kB / 0.5757 GB, free: 95.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00027/0.7457, allocations: 140 kB / 0.5759 GB, free: 94.88 MB / 462.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 (377): * Single equations (assignments): 370 * 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,6,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.002472/0.7482, allocations: 1.578 MB / 0.5774 GB, free: 93.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006192/0.7488, allocations: 343.8 kB / 0.5777 GB, free: 92.95 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00559/0.7544, allocations: 4.085 MB / 0.5817 GB, free: 88.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.7544, allocations: 20 kB / 0.5817 GB, free: 88.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.7544, allocations: 12 kB / 0.5818 GB, free: 88.74 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.7545, allocations: 11.95 kB / 0.5818 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.7673, allocations: 8.985 MB / 0.5905 GB, free: 79.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.7674, allocations: 4 kB / 0.5906 GB, free: 79.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.769, allocations: 412 kB / 0.5909 GB, free: 79.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.7706, allocations: 0.7592 MB / 0.5917 GB, free: 78.42 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/0.7708, allocations: 63.97 kB / 0.5917 GB, free: 78.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/0.7816, allocations: 16.89 MB / 0.6082 GB, free: 60.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.7817, allocations: 8 kB / 0.6083 GB, free: 60.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007574/0.7893, allocations: 5.863 MB / 0.614 GB, free: 54.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/0.7909, allocations: 0.6996 MB / 0.6147 GB, free: 53.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005027/0.7915, allocations: 56.11 kB / 0.6147 GB, free: 53.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001642/0.7931, allocations: 143.9 kB / 0.6149 GB, free: 53.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/0.7935, allocations: 181.6 kB / 0.615 GB, free: 53.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.7936, allocations: 71.98 kB / 0.6151 GB, free: 53.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002507/0.7961, allocations: 2.139 MB / 0.6172 GB, free: 51.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7961, allocations: 3.938 kB / 0.6172 GB, free: 51.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003079/0.7992, allocations: 0.9915 MB / 0.6182 GB, free: 50.06 MB / 462.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 (198): * Single equations (assignments): 190 * 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,6,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.00751/0.8067, allocations: 6.584 MB / 0.6246 GB, free: 43.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005283/0.812, allocations: 4.165 MB / 0.6287 GB, free: 39.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.8121, allocations: 0 / 0.6287 GB, free: 39.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/0.8154, allocations: 2.76 MB / 0.6313 GB, free: 36.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004046/0.8195, allocations: 0.9724 MB / 0.6323 GB, free: 35.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04472/0.8642, allocations: 35.52 MB / 0.667 GB, free: 14.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003271/0.8675, allocations: 3.423 MB / 0.6703 GB, free: 10.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002585/0.8701, allocations: 0.8035 MB / 0.6711 GB, free: 10.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002562/0.8727, allocations: 2.116 MB / 0.6732 GB, free: 7.961 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.8727, allocations: 0 / 0.6732 GB, free: 7.961 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3471/1.22, allocations: 89.32 MB / 0.7604 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.98/18.2, allocations: 5.188 kB / 0.7604 GB, free: 182.7 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches