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.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008659/0.0008659, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005855/0.005855, allocations: 165.8 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8836/0.8836, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 298.5 MB, free: 3.594 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.393e-05, allocations: 6.219 kB / 298.5 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.1433/0.1433, allocations: 17.52 MB / 316 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007917/0.1512, allocations: 5.732 MB / 321.7 MB, free: 1.215 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.1527, allocations: 147.2 kB / 321.9 MB, free: 1.152 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.1548, allocations: 1.354 MB / 323.2 MB, free: 440 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00307/0.1579, allocations: 1.991 MB / 325.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.1596, allocations: 1.254 MB / 326.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004895/0.1645, allocations: 6.36 MB / 332.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002783/0.1673, allocations: 2.888 MB / 335.7 MB, free: 8.398 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004089/0.1714, allocations: 4.27 MB / 340 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.1739, allocations: 2.88 MB / 342.9 MB, free: 2.121 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005868/0.1745, allocations: 0.7852 MB / 343.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1757, allocations: 1.05 MB / 344.7 MB, free: 292 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.1768, allocations: 2.002 MB / 346.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.1785, allocations: 2.28 MB / 349 MB, free: 11.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007312/0.1858, allocations: 10.43 MB / 359.4 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.1858, allocations: 8 kB / 359.4 MB, free: 1.523 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1859, allocations: 0 / 359.4 MB, free: 1.523 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002101/0.1861, allocations: 0 / 359.4 MB, free: 1.523 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01083/0.1969, allocations: 6.593 MB / 366 MB, free: 10.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.1969, allocations: 15.98 kB / 366 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006616/0.1976, allocations: 0.7039 MB / 366.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00244/0.2, allocations: 1.036 MB / 367.8 MB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004217/0.2043, allocations: 3.24 MB / 371 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.2045, allocations: 390.6 kB / 371.4 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005063/0.205, allocations: 0.5042 MB / 371.9 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008279/0.2133, allocations: 6.999 MB / 378.9 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.532e-05/0.2133, allocations: 19.88 kB / 378.9 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003364/0.2137, allocations: 208 kB / 379.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001611/0.2138, allocations: 246.2 kB / 379.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006867/0.2207, allocations: 5.724 MB / 385.1 MB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02198/0.2427, allocations: 18.78 MB / 403.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004227/0.2469, allocations: 3.648 MB / 407.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/0.2489, allocations: 1.921 MB / 409.4 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006699/0.2556, allocations: 4.994 MB / 414.4 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.2556, allocations: 60.5 kB / 414.5 MB, free: 9.848 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 2.926e-06/0.2556, allocations: 0 / 414.5 MB, free: 9.848 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.01296/0.2686, allocations: 9.483 MB / 424 MB, free: 340 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.2687, allocations: 73.41 kB / 424 MB, free: 252 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.2716, allocations: 2.958 MB / 427 MB, free: 13.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.2717, allocations: 65.7 kB / 427.1 MB, free: 13.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.273, allocations: 2.415 MB / 429.5 MB, free: 10.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004185/0.2734, allocations: 0.7901 MB / 430.3 MB, free: 9.977 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005267/0.2739, allocations: 0.514 MB / 430.8 MB, free: 9.453 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.274, allocations: 305.1 kB / 431.1 MB, free: 9.152 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.2754, allocations: 1.271 MB / 432.3 MB, free: 7.879 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/0.2773, allocations: 2.2 MB / 434.5 MB, free: 5.273 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003359/0.2807, allocations: 3.668 MB / 438.2 MB, free: 1.207 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.2807, allocations: 8 kB / 438.2 MB, free: 1.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005084/0.2858, allocations: 4.297 MB / 442.5 MB, free: 12.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.2858, allocations: 16 kB / 442.5 MB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.2858, allocations: 28 kB / 442.6 MB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007462/0.2866, allocations: 0.5255 MB / 443.1 MB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.288, allocations: 0.6864 MB / 443.8 MB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006159/0.2941, allocations: 9.612 MB / 453.4 MB, free: 1.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.2958, allocations: 175.7 kB / 453.6 MB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.2959, allocations: 136 kB / 453.7 MB, free: 1.105 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.002378/0.2983, allocations: 1.512 MB / 455.2 MB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004012/0.2987, allocations: 329.9 kB / 455.5 MB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/0.3031, allocations: 3.622 MB / 459.1 MB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.3031, allocations: 23.94 kB / 459.2 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.3031, allocations: 8 kB / 459.2 MB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.3031, allocations: 11.95 kB / 459.2 MB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009301/0.3124, allocations: 7.734 MB / 466.9 MB, free: 3.691 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3124, allocations: 4 kB / 466.9 MB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008787/0.3133, allocations: 384 kB / 467.3 MB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/0.3144, allocations: 0.7249 MB / 468 MB, free: 2.562 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.3145, allocations: 67.97 kB / 468.1 MB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1645/0.479, allocations: 15.66 MB / 483.8 MB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.479, allocations: 9.234 kB / 483.8 MB, free: 123.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00687/0.4859, allocations: 5.312 MB / 489.1 MB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.4871, allocations: 0.6038 MB / 489.7 MB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/0.4874, allocations: 60.62 kB / 489.7 MB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008571/0.4882, allocations: 130.7 kB / 489.9 MB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/0.4886, allocations: 180.5 kB / 490 MB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.4887, allocations: 67.66 kB / 490.1 MB, free: 120.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002179/0.4909, allocations: 1.964 MB / 492.1 MB, free: 120.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4909, allocations: 0 / 492.1 MB, free: 120.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002289/0.4932, allocations: 0.9308 MB / 493 MB, free: 120 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.005931/0.4991, allocations: 6.008 MB / 499 MB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003651/0.5028, allocations: 3.682 MB / 0.4909 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5028, allocations: 3.844 kB / 0.4909 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.5049, allocations: 2.548 MB / 0.4934 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.5068, allocations: 0.8515 MB / 0.4942 GB, free: 113.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.035/0.5418, allocations: 33.07 MB / 0.5265 GB, free: 84.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/0.5435, allocations: 2.782 MB / 0.5292 GB, free: 81.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001519/0.545, allocations: 0.7616 MB / 0.53 GB, free: 80.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.5466, allocations: 1.941 MB / 0.5319 GB, free: 78.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5466, allocations: 0 / 0.5319 GB, free: 78.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09908/0.6457, allocations: 86.34 MB / 0.6162 GB, free: 8.238 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.68, allocations: 3.859 kB / 0.6162 GB, free: 8.234 MB / 442.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 15.375923259183764]