Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001272/0.001272, allocations: 119.8 kB / 18.45 MB, free: 4.457 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.001329/0.001329, allocations: 190.9 kB / 21.39 MB, free: 1.52 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.476/1.476, allocations: 207.6 MB / 231.8 MB, free: 3.969 MB / 174.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.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 51.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09639, allocations: 49.13 MB / 391.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02868/0.1251, allocations: 21.76 MB / 413.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.1423, allocations: 6.457 MB / 419.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005512/0.1478, allocations: 123.5 kB / 419.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005795/0.1536, allocations: 1.549 MB / 421.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008955/0.1626, allocations: 2.144 MB / 423.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.1677, allocations: 1.31 MB / 424.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.1792, allocations: 6.534 MB / 431.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008566/0.1878, allocations: 3.86 MB / 435.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005831/0.1936, allocations: 3.002 MB / 438.1 MB, free: 9.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006788/0.2004, allocations: 3.631 MB / 441.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002817/0.2032, allocations: 0.8164 MB / 442.6 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004098/0.2073, allocations: 1.105 MB / 443.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003743/0.2111, allocations: 2.033 MB / 445.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008371/0.2195, allocations: 3.539 MB / 449.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01951/0.239, allocations: 10.82 MB / 460.1 MB, free: 3.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.239, allocations: 0 / 460.1 MB, free: 3.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.239, allocations: 0 / 460.1 MB, free: 3.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004582/0.2394, allocations: 0 / 460.1 MB, free: 3.691 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.2381/0.4776, allocations: 7.072 MB / 467.2 MB, free: 57.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.4776, allocations: 11.33 kB / 467.2 MB, free: 57.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003038/0.4807, allocations: 0.731 MB / 467.9 MB, free: 56.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007071/0.4877, allocations: 1.092 MB / 469 MB, free: 56.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/0.4997, allocations: 3.539 MB / 472.5 MB, free: 54.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008279/0.5005, allocations: 402.9 kB / 472.9 MB, free: 54.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002701/0.5032, allocations: 0.5292 MB / 473.4 MB, free: 54.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02054/0.5238, allocations: 7.054 MB / 480.5 MB, free: 51.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000414/0.5242, allocations: 23.56 kB / 480.5 MB, free: 51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001709/0.5259, allocations: 215.3 kB / 480.7 MB, free: 50.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003106/0.5262, allocations: 263.9 kB / 481 MB, free: 50.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.5397, allocations: 5.928 MB / 486.9 MB, free: 47.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04271/0.5824, allocations: 22.23 MB / 0.4972 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007282/0.5897, allocations: 8.072 MB / 0.5051 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00357/0.5933, allocations: 1.994 MB / 0.507 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.6066, allocations: 6.175 MB / 0.5131 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.6066, allocations: 60.22 kB / 0.5131 GB, free: 9.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.889e-06/0.6066, allocations: 0 / 0.5131 GB, free: 9.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02387/0.6305, allocations: 11.21 MB / 0.5241 GB, free: 13.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.6305, allocations: 77.41 kB / 0.5242 GB, free: 13.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007031/0.6376, allocations: 3.16 MB / 0.5272 GB, free: 10.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005188/0.6381, allocations: 65.7 kB / 0.5273 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002698/0.6408, allocations: 2.571 MB / 0.5298 GB, free: 7.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.6421, allocations: 0.8623 MB / 0.5307 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/0.6439, allocations: 0.5617 MB / 0.5312 GB, free: 6.457 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6441, allocations: 301.1 kB / 0.5315 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002891/0.647, allocations: 1.334 MB / 0.5328 GB, free: 4.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/0.6508, allocations: 2.341 MB / 0.5351 GB, free: 2.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007037/0.6578, allocations: 3.92 MB / 0.5389 GB, free: 13.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-05/0.6578, allocations: 12 kB / 0.5389 GB, free: 13.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.0108/0.6686, allocations: 4.703 MB / 0.5435 GB, free: 8.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.689e-05/0.6687, allocations: 20 kB / 0.5435 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.15e-05/0.6688, allocations: 32 kB / 0.5436 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.6702, allocations: 0.5293 MB / 0.5441 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003301/0.6735, allocations: 0.7449 MB / 0.5448 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.6856, allocations: 10.29 MB / 0.5549 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/0.6889, allocations: 183.8 kB / 0.555 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006465/0.6895, allocations: 144 kB / 0.5552 GB, free: 12.16 MB / 430.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.003952/0.6935, allocations: 1.578 MB / 0.5567 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/0.6947, allocations: 361.7 kB / 0.5571 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009728/0.7044, allocations: 4.022 MB / 0.561 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/0.7044, allocations: 24 kB / 0.561 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.95e-05/0.7045, allocations: 12 kB / 0.561 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.929e-05/0.7045, allocations: 15.89 kB / 0.561 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02227/0.7268, allocations: 8.955 MB / 0.5698 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-05/0.7268, allocations: 4 kB / 0.5698 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.7289, allocations: 412 kB / 0.5702 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/0.7312, allocations: 0.7342 MB / 0.5709 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005456/0.7318, allocations: 71.97 kB / 0.571 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02001/0.7518, allocations: 16.73 MB / 0.5873 GB, free: 9.879 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.7518, allocations: 7.938 kB / 0.5873 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/0.7633, allocations: 5.839 MB / 0.593 GB, free: 3.871 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002503/0.7658, allocations: 0.7134 MB / 0.5937 GB, free: 3.137 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001403/0.7672, allocations: 63.98 kB / 0.5938 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/0.7698, allocations: 135.9 kB / 0.5939 GB, free: 2.941 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006323/0.7704, allocations: 193.4 kB / 0.5941 GB, free: 2.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002865/0.7707, allocations: 67.98 kB / 0.5941 GB, free: 2.684 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004948/0.7756, allocations: 2.127 MB / 0.5962 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7756, allocations: 0 / 0.5962 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005545/0.7812, allocations: 0.9883 MB / 0.5972 GB, free: 15.57 MB / 478.1 MB 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.0131/0.7943, allocations: 6.549 MB / 0.6036 GB, free: 8.855 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008614/0.8029, allocations: 4.007 MB / 0.6075 GB, free: 4.746 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.8029, allocations: 0 / 0.6075 GB, free: 4.746 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00563/0.8085, allocations: 2.639 MB / 0.6101 GB, free: 2.004 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007248/0.8158, allocations: 0.9498 MB / 0.611 GB, free: 1.055 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3055/1.121, allocations: 35.63 MB / 0.6458 GB, free: 162.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006455/1.128, allocations: 3.406 MB / 0.6491 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00343/1.131, allocations: 0.8138 MB / 0.6499 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003132/1.134, allocations: 2.104 MB / 0.652 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of SimCode: time 1.753e-06/1.134, allocations: 1.375 kB / 0.652 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1563/1.291, allocations: 88.99 MB / 0.7389 GB, free: 90.33 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/18.58, allocations: 7.875 kB / 0.7389 GB, free: 90.32 MB / 0.4981 GB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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: 28.480417544953525]