Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008575/0.0008575, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008503/0.0008503, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9348/0.9348, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.SMR_Inverter,fileNamePrefix="Modelica_4_0_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_0_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 2.905e-06/2.905e-06, allocations: 0 / 318.5 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.529e-05/2.819e-05, allocations: 6.219 kB / 318.5 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01621/0.01623, allocations: 17.58 MB / 336.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009929/0.02616, allocations: 5.681 MB / 341.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003578/0.02974, allocations: 166.9 kB / 341.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003713/0.03345, allocations: 1.366 MB / 343.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006141/0.0396, allocations: 2.044 MB / 345.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002441/0.04204, allocations: 1.212 MB / 346.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006396/0.04843, allocations: 6.351 MB / 352.9 MB, free: 3.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003895/0.05233, allocations: 2.924 MB / 355.8 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006224/0.05855, allocations: 4.281 MB / 360.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004293/0.06285, allocations: 2.891 MB / 363 MB, free: 9.484 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001695/0.06454, allocations: 0.7773 MB / 363.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002084/0.06662, allocations: 1.05 MB / 364.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001783/0.06841, allocations: 2.006 MB / 366.8 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002889/0.0713, allocations: 2.288 MB / 369.1 MB, free: 3.352 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00851/0.07981, allocations: 10.44 MB / 379.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.07981, allocations: 0 / 379.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.07981, allocations: 0 / 379.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002171/0.08003, allocations: 0 / 379.5 MB, free: 8.883 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.01207/0.0921, allocations: 6.593 MB / 386.1 MB, free: 2.219 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.09215, allocations: 8.031 kB / 386.1 MB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001042/0.09319, allocations: 0.7 MB / 386.8 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002781/0.09597, allocations: 1.036 MB / 387.9 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00518/0.1012, allocations: 3.478 MB / 391.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.1014, allocations: 382.7 kB / 391.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006222/0.102, allocations: 0.5119 MB / 392.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008648/0.1106, allocations: 7.013 MB / 399.2 MB, free: 4.891 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.87e-05/0.1107, allocations: 11.98 kB / 399.3 MB, free: 4.879 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.1111, allocations: 203.9 kB / 399.4 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.1112, allocations: 242.2 kB / 399.7 MB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007279/0.1185, allocations: 5.74 MB / 405.4 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02568/0.1442, allocations: 18.79 MB / 424.2 MB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.1483, allocations: 3.646 MB / 427.9 MB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002024/0.1503, allocations: 1.921 MB / 429.8 MB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007177/0.1575, allocations: 4.99 MB / 434.8 MB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.1575, allocations: 52.56 kB / 434.8 MB, free: 0.957 MB / 394.7 MB Notification: Performance of pre-optimization done (n=205): time 3.647e-06/0.1575, allocations: 4 kB / 434.8 MB, free: 0.9531 MB / 394.7 MB Notification: Performance of matching and sorting (n=222): time 0.01388/0.1714, allocations: 9.518 MB / 444.3 MB, free: 7.414 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.1715, allocations: 73.41 kB / 444.4 MB, free: 7.328 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003801/0.1753, allocations: 2.958 MB / 447.4 MB, free: 4.359 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002113/0.1755, allocations: 65.7 kB / 447.4 MB, free: 4.289 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.1767, allocations: 2.415 MB / 449.9 MB, free: 1.855 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005712/0.1772, allocations: 0.7901 MB / 450.6 MB, free: 1.059 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000631/0.1779, allocations: 0.514 MB / 451.2 MB, free: 0.5352 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.178, allocations: 305.1 kB / 451.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2526/0.4305, allocations: 1.264 MB / 452.7 MB, free: 115.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002876/0.4334, allocations: 2.206 MB / 454.9 MB, free: 114.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/0.4373, allocations: 3.666 MB / 458.6 MB, free: 112.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.6e-05/0.4373, allocations: 7.969 kB / 458.6 MB, free: 112.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005375/0.4427, allocations: 4.296 MB / 462.9 MB, free: 110.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.4428, allocations: 25.66 kB / 462.9 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.91e-05/0.4428, allocations: 28 kB / 462.9 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009002/0.4437, allocations: 0.5137 MB / 463.5 MB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.4452, allocations: 0.6868 MB / 464.1 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005758/0.451, allocations: 9.618 MB / 473.8 MB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/0.4533, allocations: 171.5 kB / 473.9 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.4535, allocations: 130.2 kB / 474.1 MB, free: 100.9 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.002744/0.4562, allocations: 1.518 MB / 475.6 MB, free: 99.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006312/0.4569, allocations: 332.9 kB / 475.9 MB, free: 99.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004108/0.461, allocations: 3.637 MB / 479.5 MB, free: 96.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.461, allocations: 27.94 kB / 479.6 MB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.461, allocations: 8 kB / 479.6 MB, free: 96.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.461, allocations: 13.55 kB / 479.6 MB, free: 96.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008703/0.4697, allocations: 7.736 MB / 487.3 MB, free: 88.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4697, allocations: 4 kB / 487.3 MB, free: 88.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/0.4705, allocations: 380 kB / 487.7 MB, free: 88.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009787/0.4715, allocations: 0.7219 MB / 488.4 MB, free: 87.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.4716, allocations: 59.97 kB / 488.5 MB, free: 87.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007754/0.4794, allocations: 15.68 MB / 0.4923 GB, free: 70.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4794, allocations: 4 kB / 0.4923 GB, free: 70.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.4852, allocations: 5.321 MB / 0.4975 GB, free: 65.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/0.4864, allocations: 0.5965 MB / 0.4981 GB, free: 65.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.4868, allocations: 51.98 kB / 0.4982 GB, free: 65.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/0.4876, allocations: 140.3 kB / 0.4983 GB, free: 64.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.488, allocations: 169.5 kB / 0.4985 GB, free: 64.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.284e-05/0.4881, allocations: 71.98 kB / 0.4985 GB, free: 64.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002259/0.4904, allocations: 1.963 MB / 0.5005 GB, free: 62.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4904, allocations: 0 / 0.5005 GB, free: 62.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002686/0.4931, allocations: 0.9342 MB / 0.5014 GB, free: 61.8 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 (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.005631/0.4987, allocations: 6.018 MB / 0.5072 GB, free: 55.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004145/0.5028, allocations: 3.679 MB / 0.5108 GB, free: 51.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.5028, allocations: 4 kB / 0.5108 GB, free: 51.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002354/0.5052, allocations: 2.559 MB / 0.5133 GB, free: 49.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/0.5084, allocations: 0.8427 MB / 0.5142 GB, free: 48.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04969/0.5581, allocations: 33.03 MB / 0.5464 GB, free: 14.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002138/0.5603, allocations: 2.778 MB / 0.5491 GB, free: 11.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002099/0.5624, allocations: 0.7645 MB / 0.5499 GB, free: 10.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001706/0.5641, allocations: 1.937 MB / 0.5518 GB, free: 8.723 MB / 410.7 MB Notification: Performance of SimCode: time 3.096e-06/0.5641, allocations: 4 kB / 0.5518 GB, free: 8.719 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3126/0.8767, allocations: 86.29 MB / 0.636 GB, free: 131.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.668/10.54, allocations: 8.062 kB / 0.636 GB, free: 131.1 MB / 458.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_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_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.25263543240726]