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.001353/0.001353, allocations: 112 kB / 20.43 MB, free: 1.305 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.001291/0.001291, allocations: 182 kB / 23.72 MB, free: 4.559 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.357/1.357, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="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 0.001581/0.001581, allocations: 51.91 kB / 370.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2885, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02657/0.3151, allocations: 20.44 MB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.332, allocations: 5.939 MB / 449 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005053/0.3371, allocations: 166.9 kB / 449.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005613/0.3427, allocations: 1.421 MB / 450.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008933/0.3516, allocations: 2.008 MB / 452.6 MB, free: 496 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004952/0.3566, allocations: 1.253 MB / 453.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.3684, allocations: 6.122 MB / 460 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00886/0.3772, allocations: 3.034 MB / 463 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006665/0.3839, allocations: 2.909 MB / 465.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007633/0.3915, allocations: 3.452 MB / 469.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003105/0.3946, allocations: 0.7851 MB / 470.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004425/0.399, allocations: 1.082 MB / 471.3 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004085/0.4031, allocations: 1.967 MB / 473.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007766/0.4109, allocations: 3.353 MB / 476.6 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01826/0.4292, allocations: 10.33 MB / 486.9 MB, free: 14.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.4292, allocations: 3.984 kB / 486.9 MB, free: 14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4292, allocations: 3.938 kB / 486.9 MB, free: 14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000424/0.4296, allocations: 0 / 486.9 MB, free: 14 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.02275/0.4523, allocations: 6.663 MB / 493.6 MB, free: 7.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.4524, allocations: 11.97 kB / 493.6 MB, free: 7.258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002594/0.455, allocations: 0.7 MB / 494.3 MB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005876/0.4609, allocations: 1.036 MB / 495.3 MB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009004/0.4699, allocations: 3.505 MB / 498.8 MB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004805/0.4703, allocations: 386.6 kB / 499.2 MB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00171/0.4721, allocations: 0.5077 MB / 499.7 MB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.4885, allocations: 6.779 MB / 0.4946 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002169/0.4887, allocations: 7.953 kB / 0.4946 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/0.4899, allocations: 219.9 kB / 0.4948 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003054/0.4902, allocations: 246.2 kB / 0.4951 GB, free: 9.734 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.5032, allocations: 5.752 MB / 0.5007 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04223/0.5454, allocations: 20.54 MB / 0.5208 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007405/0.5528, allocations: 3.664 MB / 0.5243 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003731/0.5565, allocations: 1.921 MB / 0.5262 GB, free: 9.539 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01284/0.5694, allocations: 5.497 MB / 0.5316 GB, free: 4.008 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.128e-05/0.5695, allocations: 56.5 kB / 0.5316 GB, free: 3.941 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 6.262e-06/0.5695, allocations: 0 / 0.5316 GB, free: 3.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.2304/0.7998, allocations: 9.518 MB / 0.5409 GB, free: 101.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.7999, allocations: 78.09 kB / 0.541 GB, free: 101.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004169/0.8041, allocations: 2.904 MB / 0.5438 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002314/0.8043, allocations: 62.73 kB / 0.5439 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.8058, allocations: 2.425 MB / 0.5463 GB, free: 99.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006247/0.8064, allocations: 0.797 MB / 0.547 GB, free: 98.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006807/0.8071, allocations: 0.5221 MB / 0.5476 GB, free: 98.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.159e-05/0.8071, allocations: 302.7 kB / 0.5478 GB, free: 98.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.8088, allocations: 1.268 MB / 0.5491 GB, free: 97.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.811, allocations: 2.177 MB / 0.5512 GB, free: 96.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00386/0.8149, allocations: 3.67 MB / 0.5548 GB, free: 93.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.8149, allocations: 11.55 kB / 0.5548 GB, free: 93.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006158/0.8211, allocations: 4.302 MB / 0.559 GB, free: 91.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.8211, allocations: 15.41 kB / 0.559 GB, free: 91.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.17e-05/0.8211, allocations: 34.12 kB / 0.559 GB, free: 91.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.8222, allocations: 0.5097 MB / 0.5595 GB, free: 91.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.8245, allocations: 0.6863 MB / 0.5602 GB, free: 91.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006455/0.8309, allocations: 9.681 MB / 0.5697 GB, free: 80.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/0.8339, allocations: 179.8 kB / 0.5698 GB, free: 80.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002939/0.8342, allocations: 131.8 kB / 0.57 GB, free: 80.67 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.002669/0.8369, allocations: 1.514 MB / 0.5714 GB, free: 79.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007782/0.8376, allocations: 333.9 kB / 0.5718 GB, free: 78.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/0.8435, allocations: 3.625 MB / 0.5753 GB, free: 75.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.8436, allocations: 24 kB / 0.5753 GB, free: 75.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.762e-05/0.8436, allocations: 8 kB / 0.5753 GB, free: 75.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/0.8436, allocations: 15.89 kB / 0.5753 GB, free: 75.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/0.8585, allocations: 8.207 MB / 0.5834 GB, free: 66.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.8585, allocations: 8.469 kB / 0.5834 GB, free: 66.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.86, allocations: 383.5 kB / 0.5837 GB, free: 66.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/0.8617, allocations: 0.7197 MB / 0.5844 GB, free: 65.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.8619, allocations: 59.97 kB / 0.5845 GB, free: 65.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.8728, allocations: 15.81 MB / 0.5999 GB, free: 48.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.8728, allocations: 4 kB / 0.5999 GB, free: 48.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007437/0.8802, allocations: 5.325 MB / 0.6051 GB, free: 43.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.882, allocations: 0.5993 MB / 0.6057 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000862/0.8829, allocations: 55.98 kB / 0.6058 GB, free: 42.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/0.8848, allocations: 130.9 kB / 0.6059 GB, free: 42.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.8852, allocations: 177.5 kB / 0.6061 GB, free: 42.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.8854, allocations: 71.91 kB / 0.6061 GB, free: 42.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003303/0.8887, allocations: 1.963 MB / 0.6081 GB, free: 40.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8887, allocations: 0 / 0.6081 GB, free: 40.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003903/0.8926, allocations: 0.9335 MB / 0.609 GB, free: 39.63 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.00798/0.9005, allocations: 6.018 MB / 0.6148 GB, free: 33.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005475/0.906, allocations: 3.677 MB / 0.6184 GB, free: 29.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.906, allocations: 4.438 kB / 0.6184 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/0.9095, allocations: 2.578 MB / 0.621 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/0.9142, allocations: 0.8488 MB / 0.6218 GB, free: 26.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05538/0.9695, allocations: 33.13 MB / 0.6541 GB, free: 7.918 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005447/0.975, allocations: 3.294 MB / 0.6574 GB, free: 4.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003001/0.978, allocations: 0.7617 MB / 0.6581 GB, free: 3.824 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003741/0.9817, allocations: 1.94 MB / 0.66 GB, free: 1.883 MB / 462.1 MB Notification: Performance of SimCode: time 1.843e-06/0.9817, allocations: 0 / 0.66 GB, free: 1.883 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3747/1.356, allocations: 84.74 MB / 0.7427 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/19.17, allocations: 0 / 0.7427 GB, free: 168.6 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 26.29036081698723]