Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.001313/0.001313, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.001415/0.001415, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 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 1.453/1.453, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 62.52 kB / 347.2 MB, free: 9.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3236, allocations: 49.14 MB / 396.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01304/0.3367, allocations: 11.19 MB / 407.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009635/0.3463, allocations: 4.071 MB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003495/0.3498, allocations: 88.94 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.3535, allocations: 0.9536 MB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00592/0.3594, allocations: 1.246 MB / 413.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002907/0.3623, allocations: 0.8654 MB / 414.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006891/0.3692, allocations: 3.892 MB / 418.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003209/0.3724, allocations: 1.681 MB / 420.3 MB, free: 9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00383/0.3763, allocations: 1.89 MB / 422.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004064/0.3803, allocations: 1.96 MB / 424.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.3815, allocations: 0.496 MB / 424.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.3838, allocations: 0.6862 MB / 425.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001265/0.3851, allocations: 1.106 MB / 426.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002853/0.388, allocations: 1.638 MB / 428.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008553/0.3965, allocations: 6.631 MB / 434.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3965, allocations: 0 / 434.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3965, allocations: 0 / 434.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.3967, allocations: 0 / 434.8 MB, free: 12.59 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01265/0.4093, allocations: 4.314 MB / 439.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.4094, allocations: 11.98 kB / 439.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007699/0.4101, allocations: 443.2 kB / 439.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004334/0.4145, allocations: 0.8222 MB / 440.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00699/0.4215, allocations: 2.177 MB / 442.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.4217, allocations: 234.2 kB / 442.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008347/0.4225, allocations: 315.9 kB / 443 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/0.4326, allocations: 4.373 MB / 447.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.408e-05/0.4326, allocations: 0 / 447.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003075/0.433, allocations: 128 kB / 447.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00019/0.4331, allocations: 154.3 kB / 447.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00733/0.4405, allocations: 3.589 MB / 451.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02242/0.4629, allocations: 11.64 MB / 462.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005419/0.4683, allocations: 2.591 MB / 465.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002234/0.4705, allocations: 1.238 MB / 466.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00703/0.4776, allocations: 3.111 MB / 469.9 MB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.4776, allocations: 43.56 kB / 469.9 MB, free: 8.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 3.427e-06/0.4776, allocations: 4 kB / 469.9 MB, free: 8.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01244/0.4901, allocations: 4.779 MB / 474.7 MB, free: 4.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.4901, allocations: 64.41 kB / 474.7 MB, free: 4.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/0.4932, allocations: 1.736 MB / 476.5 MB, free: 2.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.4934, allocations: 53.64 kB / 476.5 MB, free: 2.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.4947, allocations: 1.438 MB / 478 MB, free: 0.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004863/0.4952, allocations: 452.2 kB / 478.4 MB, free: 396 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005251/0.4958, allocations: 283.4 kB / 478.7 MB, free: 108 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.4959, allocations: 313.1 kB / 479 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.4972, allocations: 0.6364 MB / 479.6 MB, free: 15.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/0.4988, allocations: 1.139 MB / 480.8 MB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002906/0.5017, allocations: 1.868 MB / 482.6 MB, free: 11.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.5018, allocations: 12 kB / 482.7 MB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004473/0.5062, allocations: 2.229 MB / 484.9 MB, free: 9.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.5063, allocations: 12 kB / 484.9 MB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.635e-05/0.5063, allocations: 24.2 kB / 484.9 MB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008469/0.5071, allocations: 267.3 kB / 485.2 MB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.5085, allocations: 355.4 kB / 485.5 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006714/0.5152, allocations: 5.857 MB / 491.4 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.517, allocations: 71.92 kB / 491.5 MB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.5171, allocations: 67.98 kB / 491.5 MB, free: 2.488 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001861/0.519, allocations: 1.005 MB / 492.5 MB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004239/0.5194, allocations: 190.9 kB / 492.7 MB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/0.5235, allocations: 1.945 MB / 494.7 MB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.5235, allocations: 12 kB / 494.7 MB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.5235, allocations: 4 kB / 494.7 MB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.5235, allocations: 7.969 kB / 494.7 MB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008255/0.5318, allocations: 4.364 MB / 499 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.5318, allocations: 4 kB / 499 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007892/0.5326, allocations: 167.8 kB / 499.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.5338, allocations: 444.2 kB / 499.6 MB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.853e-05/0.5339, allocations: 39.98 kB / 499.7 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.5455, allocations: 10.4 MB / 0.4981 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5455, allocations: 3.938 kB / 0.4981 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006247/0.5517, allocations: 2.83 MB / 0.5009 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/0.553, allocations: 342.7 kB / 0.5012 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005541/0.5535, allocations: 32 kB / 0.5013 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.5547, allocations: 63.94 kB / 0.5013 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/0.555, allocations: 104.9 kB / 0.5014 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.5551, allocations: 39.98 kB / 0.5015 GB, free: 11.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002546/0.5576, allocations: 1.178 MB / 0.5026 GB, free: 10.55 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5576, allocations: 4 kB / 0.5026 GB, free: 10.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002911/0.5605, allocations: 0.539 MB / 0.5031 GB, free: 10.01 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.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 (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,13,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.006063/0.5666, allocations: 3.438 MB / 0.5065 GB, free: 6.512 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004341/0.571, allocations: 1.942 MB / 0.5084 GB, free: 4.531 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.571, allocations: 0 / 0.5084 GB, free: 4.531 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002912/0.5739, allocations: 1.476 MB / 0.5098 GB, free: 2.988 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004035/0.5779, allocations: 0.5056 MB / 0.5103 GB, free: 2.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04494/0.6229, allocations: 18.95 MB / 0.5288 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00375/0.6266, allocations: 1.728 MB / 0.5305 GB, free: 13.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001565/0.6282, allocations: 387.7 kB / 0.5309 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/0.6302, allocations: 1.097 MB / 0.532 GB, free: 11.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/0.6302, allocations: 0 / 0.532 GB, free: 11.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3425/0.9727, allocations: 53.72 MB / 0.5844 GB, free: 140.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.57, allocations: 0 / 0.5844 GB, free: 140.4 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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/AIMC_Inverter/AIMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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: 20.392086717300117]