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.001615/0.001615, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001672/0.001672, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.411/1.411, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 47.92 kB / 371.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3346, allocations: 52.18 MB / 423.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02663/0.3612, allocations: 20.43 MB / 443.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01417/0.3754, allocations: 5.942 MB / 449.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004248/0.3797, allocations: 170.9 kB / 450 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0045/0.3842, allocations: 1.41 MB / 451.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008335/0.3925, allocations: 2.019 MB / 453.4 MB, free: 460 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00411/0.3966, allocations: 1.24 MB / 454.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01123/0.4078, allocations: 6.132 MB / 460.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009586/0.4174, allocations: 3.034 MB / 463.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007104/0.4245, allocations: 2.905 MB / 466.7 MB, free: 3.023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008974/0.4335, allocations: 3.46 MB / 470.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003361/0.4369, allocations: 0.7852 MB / 471 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00462/0.4415, allocations: 1.082 MB / 472.1 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004153/0.4456, allocations: 1.952 MB / 474 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007914/0.4536, allocations: 3.353 MB / 477.4 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02065/0.4742, allocations: 10.34 MB / 487.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4742, allocations: 3.938 kB / 487.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4742, allocations: 0 / 487.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004106/0.4746, allocations: 3.938 kB / 487.7 MB, free: 13.97 MB / 398.1 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.02133/0.496, allocations: 6.659 MB / 494.4 MB, free: 7.242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.496, allocations: 12.03 kB / 494.4 MB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.00017/0.4962, allocations: 134.5 kB / 494.5 MB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002364/0.4985, allocations: 0.7039 MB / 495.2 MB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006142/0.5047, allocations: 1.032 MB / 496.2 MB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.5165, allocations: 3.505 MB / 499.8 MB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005913/0.5171, allocations: 398.4 kB / 0.4884 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002719/0.5198, allocations: 0.4999 MB / 0.4889 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01901/0.5388, allocations: 6.775 MB / 0.4955 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002808/0.5391, allocations: 11.95 kB / 0.4955 GB, free: 10.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001565/0.5407, allocations: 216 kB / 0.4957 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003184/0.541, allocations: 238.2 kB / 0.496 GB, free: 9.582 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/0.5552, allocations: 5.763 MB / 0.5016 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04782/0.603, allocations: 20.54 MB / 0.5217 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008803/0.6118, allocations: 3.658 MB / 0.5252 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004183/0.616, allocations: 1.921 MB / 0.5271 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01375/0.6297, allocations: 5.497 MB / 0.5325 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.692e-05/0.6298, allocations: 56.56 kB / 0.5325 GB, free: 3.781 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.118e-06/0.6298, allocations: 3.938 kB / 0.5325 GB, free: 3.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.2673/0.8971, allocations: 9.512 MB / 0.5418 GB, free: 101.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.8971, allocations: 77.75 kB / 0.5419 GB, free: 101.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004268/0.9014, allocations: 2.904 MB / 0.5447 GB, free: 100.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.9016, allocations: 66.7 kB / 0.5448 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.903, allocations: 2.424 MB / 0.5472 GB, free: 99.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005767/0.9036, allocations: 0.7967 MB / 0.5479 GB, free: 98.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006987/0.9043, allocations: 0.5194 MB / 0.5484 GB, free: 98.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.9043, allocations: 303.1 kB / 0.5487 GB, free: 98.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/0.906, allocations: 1.277 MB / 0.55 GB, free: 97.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.9083, allocations: 2.176 MB / 0.5521 GB, free: 96.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003876/0.9121, allocations: 3.675 MB / 0.5557 GB, free: 93.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.9122, allocations: 7.656 kB / 0.5557 GB, free: 93.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00604/0.9182, allocations: 4.286 MB / 0.5599 GB, free: 92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.9182, allocations: 16 kB / 0.5599 GB, free: 91.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.45e-05/0.9183, allocations: 31.94 kB / 0.5599 GB, free: 91.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.9193, allocations: 0.5188 MB / 0.5604 GB, free: 91.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/0.9215, allocations: 0.686 MB / 0.5611 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006329/0.9278, allocations: 9.684 MB / 0.5706 GB, free: 80.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/0.9308, allocations: 175.7 kB / 0.5707 GB, free: 80.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002525/0.9311, allocations: 132 kB / 0.5709 GB, free: 80.56 MB / 446.1 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.002678/0.9338, allocations: 1.513 MB / 0.5723 GB, free: 79.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009023/0.9347, allocations: 333.7 kB / 0.5727 GB, free: 78.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005353/0.94, allocations: 3.626 MB / 0.5762 GB, free: 75.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.94, allocations: 27.94 kB / 0.5762 GB, free: 75.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.94, allocations: 11.98 kB / 0.5762 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/0.9401, allocations: 11.97 kB / 0.5762 GB, free: 75.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.9513, allocations: 8.202 MB / 0.5843 GB, free: 66.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.9513, allocations: 11.88 kB / 0.5843 GB, free: 66.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.9528, allocations: 380 kB / 0.5846 GB, free: 66.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001583/0.9543, allocations: 0.721 MB / 0.5853 GB, free: 65.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/0.9545, allocations: 63.97 kB / 0.5854 GB, free: 65.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.965, allocations: 15.81 MB / 0.6008 GB, free: 48.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.965, allocations: 4 kB / 0.6008 GB, free: 48.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007622/0.9726, allocations: 5.329 MB / 0.606 GB, free: 43.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/0.9744, allocations: 0.5903 MB / 0.6066 GB, free: 42.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007904/0.9752, allocations: 52 kB / 0.6067 GB, free: 42.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.9769, allocations: 135.9 kB / 0.6068 GB, free: 42.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003729/0.9773, allocations: 177.5 kB / 0.607 GB, free: 42.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.9774, allocations: 67.97 kB / 0.607 GB, free: 42.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00237/0.9798, allocations: 1.96 MB / 0.6089 GB, free: 40.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9798, allocations: 4 kB / 0.6089 GB, free: 40.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003204/0.983, allocations: 0.9374 MB / 0.6099 GB, free: 39.52 MB / 446.1 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.007114/0.9901, allocations: 6.024 MB / 0.6157 GB, free: 33.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004903/0.995, allocations: 3.677 MB / 0.6193 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.995, allocations: 0 / 0.6193 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003966/0.999, allocations: 2.583 MB / 0.6219 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004105/1.003, allocations: 0.8467 MB / 0.6227 GB, free: 26.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0604/1.063, allocations: 33.14 MB / 0.655 GB, free: 7.793 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005162/1.069, allocations: 3.298 MB / 0.6583 GB, free: 4.461 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003255/1.072, allocations: 0.7617 MB / 0.659 GB, free: 3.695 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003549/1.075, allocations: 1.94 MB / 0.6609 GB, free: 1.754 MB / 462.1 MB Notification: Performance of SimCode: time 1.964e-06/1.075, allocations: 0 / 0.6609 GB, free: 1.754 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.014/2.09, allocations: 84.75 MB / 0.7437 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.61/19.7, allocations: 5.141 kB / 0.7437 GB, free: 168.8 MB / 0.5294 GB " [Timeout remaining time 640] (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/jenkins1/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/jenkins1/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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 31.871165826974902]