Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001362/0.001362, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001341/0.001341, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.409/1.409, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.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.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 51.92 kB / 365.7 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1252, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02629/0.1515, allocations: 21.83 MB / 439.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.165, allocations: 6.417 MB / 446.1 MB, free: 244 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003571/0.1686, allocations: 139.4 kB / 446.2 MB, free: 104 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.21/0.3786, allocations: 1.552 MB / 447.7 MB, free: 9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00661/0.3852, allocations: 2.151 MB / 449.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003448/0.3886, allocations: 1.294 MB / 451.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008917/0.3975, allocations: 6.52 MB / 457.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005986/0.4035, allocations: 3.911 MB / 461.6 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005554/0.4091, allocations: 3.009 MB / 464.6 MB, free: 6.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007066/0.4161, allocations: 3.632 MB / 468.3 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002171/0.4183, allocations: 0.8154 MB / 469.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.4222, allocations: 1.107 MB / 470.2 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00204/0.4242, allocations: 2.039 MB / 472.2 MB, free: 3.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005206/0.4294, allocations: 3.543 MB / 475.8 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.4429, allocations: 10.83 MB / 486.6 MB, free: 9.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4429, allocations: 3.938 kB / 486.6 MB, free: 9.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4429, allocations: 0 / 486.6 MB, free: 9.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002829/0.4432, allocations: 2.438 kB / 486.6 MB, free: 9.859 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01867/0.4619, allocations: 7.074 MB / 493.7 MB, free: 4.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.4619, allocations: 15.89 kB / 493.7 MB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001744/0.4637, allocations: 0.7363 MB / 494.4 MB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/0.469, allocations: 1.089 MB / 495.5 MB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009323/0.4784, allocations: 3.77 MB / 499.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004214/0.4788, allocations: 406.2 kB / 499.7 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001724/0.4805, allocations: 0.5309 MB / 0.4885 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01585/0.4964, allocations: 7.059 MB / 0.4954 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001759/0.4965, allocations: 11.94 kB / 0.4954 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009016/0.4974, allocations: 223.8 kB / 0.4956 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002875/0.4977, allocations: 263.1 kB / 0.4959 GB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.5107, allocations: 5.945 MB / 0.5017 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04681/0.5576, allocations: 22.23 MB / 0.5234 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009693/0.5672, allocations: 8.071 MB / 0.5313 GB, free: 1.359 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003867/0.5711, allocations: 2.001 MB / 0.5332 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01407/0.5852, allocations: 6.172 MB / 0.5392 GB, free: 9.125 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.531e-05/0.5852, allocations: 56.56 kB / 0.5393 GB, free: 9.059 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 5.09e-06/0.5852, allocations: 0 / 0.5393 GB, free: 9.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.02548/0.6107, allocations: 11.09 MB / 0.5501 GB, free: 13.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.6108, allocations: 81.41 kB / 0.5502 GB, free: 13.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006354/0.6172, allocations: 3.152 MB / 0.5533 GB, free: 10.51 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/0.6174, allocations: 69.64 kB / 0.5533 GB, free: 10.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.6197, allocations: 2.576 MB / 0.5559 GB, free: 7.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009854/0.6207, allocations: 0.8626 MB / 0.5567 GB, free: 6.996 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.6219, allocations: 0.5617 MB / 0.5572 GB, free: 6.426 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.622, allocations: 301.1 kB / 0.5575 GB, free: 6.129 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/0.6245, allocations: 1.338 MB / 0.5588 GB, free: 4.789 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003443/0.628, allocations: 2.345 MB / 0.5611 GB, free: 2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006158/0.6341, allocations: 3.917 MB / 0.565 GB, free: 13.62 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.162e-05/0.6342, allocations: 8 kB / 0.565 GB, free: 13.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009192/0.6433, allocations: 4.707 MB / 0.5696 GB, free: 8.797 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.6434, allocations: 16 kB / 0.5696 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.879e-05/0.6435, allocations: 32 kB / 0.5696 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.6448, allocations: 0.5324 MB / 0.5701 GB, free: 8.199 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002804/0.6476, allocations: 0.7449 MB / 0.5709 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/0.6585, allocations: 10.28 MB / 0.5809 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003068/0.6616, allocations: 183.8 kB / 0.5811 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004937/0.6621, allocations: 152 kB / 0.5812 GB, free: 12.14 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.00377/0.6658, allocations: 1.57 MB / 0.5828 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/0.667, allocations: 361.7 kB / 0.5831 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008477/0.6755, allocations: 4.026 MB / 0.587 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.113e-05/0.6755, allocations: 27.94 kB / 0.5871 GB, free: 6.055 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.901e-05/0.6756, allocations: 11.94 kB / 0.5871 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/0.6756, allocations: 11.95 kB / 0.5871 GB, free: 6.031 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/0.6978, allocations: 8.949 MB / 0.5958 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.95e-05/0.6978, allocations: 8 kB / 0.5958 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001821/0.6996, allocations: 407.4 kB / 0.5962 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/0.7017, allocations: 0.7377 MB / 0.5969 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000225/0.7019, allocations: 63.97 kB / 0.597 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01798/0.7199, allocations: 16.76 MB / 0.6134 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.7199, allocations: 12.06 kB / 0.6134 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/0.7313, allocations: 5.84 MB / 0.6191 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002333/0.7336, allocations: 0.7095 MB / 0.6198 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001097/0.7347, allocations: 63.92 kB / 0.6198 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/0.737, allocations: 135.9 kB / 0.62 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005374/0.7376, allocations: 185.6 kB / 0.6201 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/0.7378, allocations: 71.98 kB / 0.6202 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004813/0.7426, allocations: 2.123 MB / 0.6223 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.7426, allocations: 0 / 0.6223 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005205/0.7478, allocations: 0.9922 MB / 0.6232 GB, free: 15.55 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (201): * Single equations (assignments): 193 * 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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01193/0.7598, allocations: 6.561 MB / 0.6297 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007421/0.7672, allocations: 3.997 MB / 0.6336 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.7672, allocations: 0 / 0.6336 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004632/0.7718, allocations: 2.652 MB / 0.6361 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005875/0.7777, allocations: 0.9447 MB / 0.6371 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2775/1.055, allocations: 35.61 MB / 0.6718 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002976/1.058, allocations: 3.406 MB / 0.6752 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002502/1.061, allocations: 0.8107 MB / 0.676 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002139/1.063, allocations: 2.103 MB / 0.678 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of SimCode: time 7.71e-07/1.063, allocations: 0 / 0.678 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2074/1.27, allocations: 89.02 MB / 0.7649 GB, free: 82.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/19.05, allocations: 15.69 kB / 0.765 GB, free: 82.54 MB / 0.5294 GB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 27.913832077290863]