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.001276/0.001276, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001379/0.001379, allocations: 189.1 kB / 24.49 MB, free: 3.98 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.441/1.441, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.001599/0.001599, allocations: 51.92 kB / 371.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.356, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.0226/0.3786, allocations: 17.56 MB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3922, allocations: 5.647 MB / 446.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004003/0.3962, allocations: 163 kB / 446.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004288/0.4005, allocations: 1.358 MB / 448.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007896/0.4084, allocations: 1.987 MB / 450.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003662/0.412, allocations: 1.204 MB / 451.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009514/0.4215, allocations: 6.129 MB / 457.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004916/0.4265, allocations: 3.034 MB / 460.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005015/0.4315, allocations: 2.917 MB / 463.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006176/0.4376, allocations: 3.46 MB / 466.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001485/0.4391, allocations: 0.7812 MB / 467.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002579/0.4417, allocations: 1.054 MB / 468.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.4437, allocations: 1.971 MB / 470.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004728/0.4484, allocations: 2.672 MB / 473.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01469/0.4631, allocations: 10.39 MB / 483.7 MB, free: 1.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.184e-05/0.4631, allocations: 4 kB / 483.7 MB, free: 1.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4631, allocations: 4 kB / 483.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000318/0.4635, allocations: 0 / 483.7 MB, free: 1.777 MB / 382.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.02016/0.4836, allocations: 6.655 MB / 490.4 MB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.4837, allocations: 12.03 kB / 490.4 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002167/0.4839, allocations: 134.5 kB / 490.5 MB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001906/0.4858, allocations: 0.7 MB / 491.2 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005065/0.4909, allocations: 1.036 MB / 492.3 MB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008525/0.4994, allocations: 3.509 MB / 495.8 MB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003841/0.4998, allocations: 386.4 kB / 496.1 MB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.5009, allocations: 0.4999 MB / 496.6 MB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01581/0.5167, allocations: 7.008 MB / 0.4918 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002013/0.5169, allocations: 11.95 kB / 0.4919 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009932/0.5179, allocations: 204 kB / 0.492 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003273/0.5182, allocations: 246.2 kB / 0.4923 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.5318, allocations: 5.752 MB / 0.4979 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04682/0.5786, allocations: 18.78 MB / 0.5162 GB, free: 4.082 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008347/0.587, allocations: 3.643 MB / 0.5198 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003807/0.5908, allocations: 1.917 MB / 0.5217 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.6054, allocations: 4.99 MB / 0.5265 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.996e-05/0.6055, allocations: 56.56 kB / 0.5266 GB, free: 9.621 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 8.315e-06/0.6055, allocations: 4 kB / 0.5266 GB, free: 9.617 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.02363/0.6291, allocations: 9.528 MB / 0.5359 GB, free: 72 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2554/0.8845, allocations: 71.92 kB / 0.536 GB, free: 105.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005969/0.8905, allocations: 2.896 MB / 0.5388 GB, free: 105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005792/0.8911, allocations: 62.02 kB / 0.5389 GB, free: 105 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/0.893, allocations: 2.422 MB / 0.5412 GB, free: 104.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007694/0.8937, allocations: 0.8082 MB / 0.542 GB, free: 103.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00079/0.8945, allocations: 0.5179 MB / 0.5425 GB, free: 103.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.8946, allocations: 301.1 kB / 0.5428 GB, free: 103 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.8964, allocations: 1.271 MB / 0.544 GB, free: 102.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002184/0.8986, allocations: 2.21 MB / 0.5462 GB, free: 101 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003895/0.9025, allocations: 3.662 MB / 0.5498 GB, free: 98.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.9025, allocations: 6.906 kB / 0.5498 GB, free: 98.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005945/0.9085, allocations: 4.302 MB / 0.554 GB, free: 96.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.9085, allocations: 16 kB / 0.554 GB, free: 96.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.9085, allocations: 32 kB / 0.554 GB, free: 96.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.9095, allocations: 0.5129 MB / 0.5545 GB, free: 95.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/0.9117, allocations: 0.6866 MB / 0.5552 GB, free: 95.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006126/0.9178, allocations: 9.63 MB / 0.5646 GB, free: 85.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002777/0.9206, allocations: 166.6 kB / 0.5648 GB, free: 85.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/0.9208, allocations: 126.9 kB / 0.5649 GB, free: 85.25 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.00278/0.9235, allocations: 1.522 MB / 0.5664 GB, free: 83.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/0.9242, allocations: 337.8 kB / 0.5667 GB, free: 83.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005179/0.9293, allocations: 3.628 MB / 0.5702 GB, free: 79.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.9294, allocations: 24 kB / 0.5703 GB, free: 79.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.9294, allocations: 8 kB / 0.5703 GB, free: 79.92 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.9294, allocations: 11.95 kB / 0.5703 GB, free: 79.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.9401, allocations: 7.747 MB / 0.5778 GB, free: 72.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.9401, allocations: 0 / 0.5778 GB, free: 72.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.9415, allocations: 381.7 kB / 0.5782 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.9431, allocations: 0.7284 MB / 0.5789 GB, free: 70.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.9432, allocations: 59.97 kB / 0.579 GB, free: 70.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.9535, allocations: 15.69 MB / 0.5943 GB, free: 54.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.9535, allocations: 15.97 kB / 0.5943 GB, free: 54.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007433/0.9609, allocations: 5.329 MB / 0.5995 GB, free: 48.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/0.9628, allocations: 0.5914 MB / 0.6001 GB, free: 48.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/0.9632, allocations: 59.92 kB / 0.6002 GB, free: 48.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.9647, allocations: 131.9 kB / 0.6003 GB, free: 48.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.9651, allocations: 173.6 kB / 0.6004 GB, free: 47.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.9652, allocations: 67.92 kB / 0.6005 GB, free: 47.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00254/0.9678, allocations: 1.963 MB / 0.6024 GB, free: 45.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.9678, allocations: 0 / 0.6024 GB, free: 45.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003241/0.971, allocations: 0.9315 MB / 0.6033 GB, free: 45.02 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.007376/0.9784, allocations: 6.035 MB / 0.6092 GB, free: 38.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005216/0.9836, allocations: 3.672 MB / 0.6128 GB, free: 35.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.9836, allocations: 0 / 0.6128 GB, free: 35.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00337/0.987, allocations: 2.573 MB / 0.6153 GB, free: 32.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/0.991, allocations: 0.8497 MB / 0.6162 GB, free: 31.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04983/1.041, allocations: 33.11 MB / 0.6485 GB, free: 13.35 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003495/1.044, allocations: 2.774 MB / 0.6512 GB, free: 10.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002392/1.047, allocations: 0.7655 MB / 0.652 GB, free: 9.762 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00259/1.049, allocations: 1.944 MB / 0.6539 GB, free: 7.816 MB / 462.1 MB Notification: Performance of SimCode: time 1.303e-06/1.049, allocations: 0 / 0.6539 GB, free: 7.816 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1761/1.225, allocations: 86.8 MB / 0.7386 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.42/18.65, allocations: 19.98 kB / 0.7386 GB, free: 1.879 MB / 0.5294 GB " [Timeout remaining time 641] (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: 30.04685113299638]