Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.0009489/0.0009489, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009936/0.0009936, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8772/0.8772, allocations: 177.1 MB / 204.2 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.583e-05/1.733e-05, allocations: 6.219 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01388/0.0139, allocations: 18.16 MB / 342.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00833/0.02223, allocations: 5.923 MB / 348.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.02395, allocations: 178.9 kB / 348.8 MB, free: 7.551 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002075/0.02603, allocations: 1.373 MB / 350.2 MB, free: 6.168 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003032/0.02906, allocations: 2.034 MB / 352.3 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001595/0.03066, allocations: 1.259 MB / 353.5 MB, free: 2.863 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004304/0.03496, allocations: 6.427 MB / 359.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002806/0.03777, allocations: 2.928 MB / 362.9 MB, free: 9.398 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004639/0.04241, allocations: 4.3 MB / 367.2 MB, free: 5.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.04537, allocations: 2.907 MB / 370.1 MB, free: 2.176 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000619/0.04599, allocations: 0.7812 MB / 370.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.04728, allocations: 1.062 MB / 371.9 MB, free: 340 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001055/0.04834, allocations: 2.01 MB / 373.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.04992, allocations: 2.292 MB / 376.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006429/0.05635, allocations: 10.48 MB / 386.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.05635, allocations: 0 / 386.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.05635, allocations: 0 / 386.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000127/0.05648, allocations: 4 kB / 386.7 MB, free: 1.508 MB / 346.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.008419/0.0649, allocations: 6.632 MB / 393.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.06494, allocations: 8.031 kB / 393.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006204/0.06556, allocations: 0.6961 MB / 394 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.06787, allocations: 1.032 MB / 395.1 MB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004063/0.07193, allocations: 3.501 MB / 398.6 MB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.07212, allocations: 386.6 kB / 399 MB, free: 5.102 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005078/0.07263, allocations: 0.5042 MB / 399.5 MB, free: 4.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007803/0.08043, allocations: 7.013 MB / 406.5 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.814e-05/0.08052, allocations: 11.94 kB / 406.5 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003541/0.08088, allocations: 212 kB / 406.7 MB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.08104, allocations: 242.2 kB / 406.9 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007032/0.08807, allocations: 5.744 MB / 412.7 MB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02119/0.1093, allocations: 18.79 MB / 431.5 MB, free: 3.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004361/0.1136, allocations: 3.714 MB / 435.2 MB, free: 476 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.1159, allocations: 2.042 MB / 437.2 MB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006805/0.1227, allocations: 5.048 MB / 442.3 MB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1227, allocations: 52.56 kB / 442.3 MB, free: 9.266 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 3.898e-06/0.1227, allocations: 0 / 442.3 MB, free: 9.266 MB / 410.7 MB Notification: Performance of matching and sorting (n=222): time 0.1661/0.2888, allocations: 9.572 MB / 451.9 MB, free: 109.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.2888, allocations: 74.94 kB / 452 MB, free: 109.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003596/0.2924, allocations: 2.976 MB / 454.9 MB, free: 109.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003847/0.2928, allocations: 68.05 kB / 455 MB, free: 109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008447/0.2937, allocations: 2.428 MB / 457.4 MB, free: 108.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003375/0.294, allocations: 0.7846 MB / 458.2 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005536/0.2946, allocations: 0.5187 MB / 458.7 MB, free: 107.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.279e-05/0.2946, allocations: 302.6 kB / 459 MB, free: 107 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.2959, allocations: 1.274 MB / 460.3 MB, free: 106.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.2973, allocations: 2.201 MB / 462.5 MB, free: 105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/0.3, allocations: 3.675 MB / 466.2 MB, free: 102.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.3, allocations: 7.719 kB / 466.2 MB, free: 102.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.003958/0.3039, allocations: 4.321 MB / 470.5 MB, free: 100.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.304, allocations: 16 kB / 470.5 MB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.304, allocations: 28 kB / 470.6 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/0.3046, allocations: 0.5402 MB / 471.1 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.3058, allocations: 0.6844 MB / 471.8 MB, free: 99.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004072/0.3099, allocations: 9.754 MB / 481.5 MB, free: 89.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.3112, allocations: 177.9 kB / 481.7 MB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3114, allocations: 135.7 kB / 481.8 MB, free: 89.59 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 (345): * Single equations (assignments): 338 * 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,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.001888/0.3133, allocations: 1.526 MB / 483.4 MB, free: 88.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.3135, allocations: 337.8 kB / 483.7 MB, free: 87.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003427/0.317, allocations: 3.643 MB / 487.3 MB, free: 84.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.317, allocations: 24 kB / 487.4 MB, free: 84.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.317, allocations: 8 kB / 487.4 MB, free: 84.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.317, allocations: 11.95 kB / 487.4 MB, free: 84.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007229/0.3242, allocations: 7.777 MB / 495.2 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3242, allocations: 4 kB / 495.2 MB, free: 76.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007943/0.325, allocations: 383.4 kB / 495.5 MB, free: 75.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/0.326, allocations: 0.7433 MB / 496.3 MB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.3261, allocations: 67.97 kB / 496.3 MB, free: 74.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006695/0.3328, allocations: 15.82 MB / 0.5002 GB, free: 58.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3328, allocations: 4 kB / 0.5002 GB, free: 58.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004401/0.3372, allocations: 5.33 MB / 0.5054 GB, free: 52.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007598/0.338, allocations: 0.6017 MB / 0.506 GB, free: 52.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.3382, allocations: 51.98 kB / 0.506 GB, free: 52.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000736/0.339, allocations: 135.7 kB / 0.5061 GB, free: 52.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.3392, allocations: 177.5 kB / 0.5063 GB, free: 51.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.3393, allocations: 75.97 kB / 0.5064 GB, free: 51.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001545/0.3408, allocations: 1.972 MB / 0.5083 GB, free: 49.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3408, allocations: 4 kB / 0.5083 GB, free: 49.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001793/0.3426, allocations: 0.9381 MB / 0.5092 GB, free: 48.93 MB / 410.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 (182): * Single equations (assignments): 174 * 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,6,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.004573/0.3472, allocations: 6.047 MB / 0.5151 GB, free: 42.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.3503, allocations: 3.692 MB / 0.5187 GB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3503, allocations: 4 kB / 0.5187 GB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.3521, allocations: 2.567 MB / 0.5212 GB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.3539, allocations: 0.8655 MB / 0.5221 GB, free: 35.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03396/0.3879, allocations: 33.09 MB / 0.5544 GB, free: 1.258 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002206/0.3901, allocations: 2.791 MB / 0.5571 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00164/0.3918, allocations: 0.758 MB / 0.5579 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001709/0.3935, allocations: 1.948 MB / 0.5598 GB, free: 11.72 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3935, allocations: 4 kB / 0.5598 GB, free: 11.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2916/0.6851, allocations: 86.84 MB / 0.6446 GB, free: 143.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.352/10.04, allocations: 1.875 kB / 0.6446 GB, free: 143.6 MB / 474.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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: 14.962272827513516]