Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.0007293/0.0007293, allocations: 99.69 kB / 17.3 MB, free: 6.395 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.0009233/0.0009236, allocations: 177 kB / 18.2 MB, free: 5.555 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.4 MB / 224.4 MB, free: 13.08 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.0004376/0.0004377, allocations: 16.45 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1072, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0206/0.1279, allocations: 20.52 MB / 349.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.1415, allocations: 6.31 MB / 355.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004215/0.1458, allocations: 119.4 kB / 356 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004469/0.1503, allocations: 1.255 MB / 357.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007243/0.1576, allocations: 1.838 MB / 359.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003479/0.1611, allocations: 1.185 MB / 360.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009964/0.171, allocations: 7.084 MB / 367.4 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007159/0.1783, allocations: 4.568 MB / 371.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003933/0.1822, allocations: 2.162 MB / 374.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004648/0.1869, allocations: 2.925 MB / 377 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001397/0.1883, allocations: 343.9 kB / 377.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002838/0.1912, allocations: 0.6324 MB / 378 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001897/0.1931, allocations: 1.452 MB / 379.5 MB, free: 1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1909/0.384, allocations: 2.917 MB / 382.4 MB, free: 18.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.3962, allocations: 10.08 MB / 392.5 MB, free: 17.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3962, allocations: 3.75 kB / 392.5 MB, free: 17.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.3962, allocations: 0 / 392.5 MB, free: 17.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003574/0.3966, allocations: 0 / 392.5 MB, free: 17.88 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01656/0.4132, allocations: 5.808 MB / 398.3 MB, free: 14.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.4132, allocations: 9.094 kB / 398.3 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00181/0.415, allocations: 0.7351 MB / 399 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005084/0.4201, allocations: 1.063 MB / 400.1 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005847/0.426, allocations: 3.457 MB / 403.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/0.4264, allocations: 413.6 kB / 403.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008362/0.4272, allocations: 0.5295 MB / 404.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01097/0.4382, allocations: 7.064 MB / 411.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.4383, allocations: 17.2 kB / 411.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004743/0.4388, allocations: 224 kB / 411.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002208/0.4391, allocations: 259 kB / 412 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01073/0.4498, allocations: 5.965 MB / 418 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04497/0.4948, allocations: 22.54 MB / 440.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00889/0.5037, allocations: 8.301 MB / 448.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003828/0.5076, allocations: 2.2 MB / 451 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.013/0.5206, allocations: 6.201 MB / 457.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.5207, allocations: 60.55 kB / 457.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 4.409e-06/0.5207, allocations: 7.375 kB / 457.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02811/0.5488, allocations: 11.32 MB / 468.6 MB, free: 3.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.549, allocations: 77.39 kB / 468.7 MB, free: 3.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008794/0.5578, allocations: 3.152 MB / 471.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005887/0.5584, allocations: 65.7 kB / 471.9 MB, free: 0.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002616/0.561, allocations: 2.502 MB / 474.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/0.5624, allocations: 0.836 MB / 475.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007958/0.5632, allocations: 248.3 kB / 475.5 MB, free: 13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.5633, allocations: 301.1 kB / 475.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003062/0.5664, allocations: 1.349 MB / 477.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003847/0.5703, allocations: 2.364 MB / 479.5 MB, free: 8.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006947/0.5772, allocations: 3.947 MB / 483.4 MB, free: 4.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-05/0.5773, allocations: 11.98 kB / 483.4 MB, free: 4.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01049/0.5878, allocations: 4.737 MB / 488.2 MB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.5879, allocations: 20 kB / 488.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.574e-05/0.588, allocations: 32 kB / 488.2 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.5893, allocations: 0.5211 MB / 488.8 MB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/0.5923, allocations: 0.76 MB / 489.5 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009655/0.6019, allocations: 9.436 MB / 498.9 MB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004528/0.6065, allocations: 195.8 kB / 499.1 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000651/0.6072, allocations: 144 kB / 499.3 MB, free: 3.934 MB / 398.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.005119/0.6123, allocations: 1.573 MB / 0.4891 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/0.6137, allocations: 347.7 kB / 0.4894 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009274/0.623, allocations: 4.074 MB / 0.4934 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/0.623, allocations: 30.56 kB / 0.4935 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.866e-05/0.6231, allocations: 15.94 kB / 0.4935 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.558e-05/0.6231, allocations: 11.95 kB / 0.4935 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02144/0.6445, allocations: 8.997 MB / 0.5023 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.957e-05/0.6446, allocations: 4.594 kB / 0.5023 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/0.6465, allocations: 415.3 kB / 0.5027 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/0.6486, allocations: 0.7425 MB / 0.5034 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/0.6488, allocations: 63.97 kB / 0.5035 GB, free: 3.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/0.6647, allocations: 15.33 MB / 0.5184 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/0.6647, allocations: 6.625 kB / 0.5184 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/0.6767, allocations: 5.895 MB / 0.5242 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002662/0.6794, allocations: 0.6998 MB / 0.5249 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/0.6809, allocations: 59.94 kB / 0.5249 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/0.6837, allocations: 151.9 kB / 0.5251 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005566/0.6843, allocations: 187.6 kB / 0.5253 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002339/0.6845, allocations: 67.98 kB / 0.5253 GB, free: 12.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005837/0.6904, allocations: 2.123 MB / 0.5274 GB, free: 9.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6904, allocations: 0 / 0.5274 GB, free: 9.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006511/0.6969, allocations: 0.9883 MB / 0.5284 GB, free: 8.926 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.01233/0.7092, allocations: 6.596 MB / 0.5348 GB, free: 2.215 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2376/0.9469, allocations: 4.153 MB / 0.5389 GB, free: 164.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.9469, allocations: 1.625 kB / 0.5389 GB, free: 164.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005408/0.9524, allocations: 2.772 MB / 0.5416 GB, free: 163.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007459/0.9598, allocations: 0.903 MB / 0.5424 GB, free: 163.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07535/1.035, allocations: 45.59 MB / 0.587 GB, free: 127.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003087/1.038, allocations: 3.407 MB / 0.5903 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002754/1.041, allocations: 0.8073 MB / 0.5911 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002254/1.043, allocations: 2.108 MB / 0.5931 GB, free: 121.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.883e-06/1.043, allocations: 0.7656 kB / 0.5931 GB, free: 121.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1576/1.201, allocations: 86.02 MB / 0.6771 GB, free: 35.18 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/1.201, allocations: 249.4 kB / 0.6774 GB, free: 34.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.397/5.598, allocations: 0 / 0.6774 GB, free: 34.92 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches