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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 103.5 kB / 21.96 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 214 kB / 25.26 MB, free: 3.129 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.574/1.574, allocations: 207.7 MB / 236.1 MB, free: 9.789 MB / 190.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 54.86 kB / 348 MB, free: 9.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2655, allocations: 49.16 MB / 397.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01896/0.2845, allocations: 18.71 MB / 415.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.2987, allocations: 6.177 MB / 422 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003986/0.3027, allocations: 153.1 kB / 422.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004625/0.3073, allocations: 1.48 MB / 423.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007245/0.3146, allocations: 2.09 MB / 425.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003635/0.3182, allocations: 1.303 MB / 427.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.3301, allocations: 6.542 MB / 433.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006355/0.3364, allocations: 3.084 MB / 436.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005503/0.3419, allocations: 3.065 MB / 439.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006531/0.3485, allocations: 3.639 MB / 443.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002429/0.3509, allocations: 0.8164 MB / 444.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003732/0.3546, allocations: 1.093 MB / 445.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003162/0.3578, allocations: 2.049 MB / 447.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006143/0.3639, allocations: 2.82 MB / 450.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.3769, allocations: 10.87 MB / 461 MB, free: 3.094 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3769, allocations: 0 / 461 MB, free: 3.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3769, allocations: 4 kB / 461.1 MB, free: 3.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002641/0.3772, allocations: 0 / 461.1 MB, free: 3.09 MB / 366.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.01625/0.3934, allocations: 6.996 MB / 468 MB, free: 12.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3935, allocations: 15.98 kB / 468.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001422/0.3936, allocations: 143 kB / 468.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009935/0.3946, allocations: 0.7329 MB / 468.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004562/0.3992, allocations: 1.094 MB / 470 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006298/0.4055, allocations: 3.438 MB / 473.5 MB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.4058, allocations: 410.7 kB / 473.9 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008251/0.4066, allocations: 0.5311 MB / 474.4 MB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.4188, allocations: 7.281 MB / 481.7 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.4189, allocations: 7.953 kB / 481.7 MB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000514/0.4194, allocations: 216 kB / 481.9 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002859/0.4197, allocations: 262.6 kB / 482.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/0.4302, allocations: 5.937 MB / 488.1 MB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03673/0.4669, allocations: 19.94 MB / 0.4961 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006687/0.4736, allocations: 3.699 MB / 0.4997 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003376/0.477, allocations: 1.976 MB / 0.5017 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.4882, allocations: 5.208 MB / 0.5067 GB, free: 8.543 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/0.4883, allocations: 60.56 kB / 0.5068 GB, free: 8.473 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.779e-06/0.4883, allocations: 0 / 0.5068 GB, free: 8.473 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02312/0.5114, allocations: 10.22 MB / 0.5168 GB, free: 14.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.5115, allocations: 77.41 kB / 0.5169 GB, free: 14.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005672/0.5171, allocations: 3.148 MB / 0.5199 GB, free: 11.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.5173, allocations: 69.7 kB / 0.52 GB, free: 10.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002027/0.5193, allocations: 2.572 MB / 0.5225 GB, free: 8.344 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007697/0.5201, allocations: 0.8637 MB / 0.5234 GB, free: 7.473 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009468/0.5211, allocations: 0.5656 MB / 0.5239 GB, free: 6.898 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5212, allocations: 301.1 kB / 0.5242 GB, free: 6.602 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.5234, allocations: 1.338 MB / 0.5255 GB, free: 5.262 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002996/0.5264, allocations: 2.364 MB / 0.5278 GB, free: 2.445 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005498/0.5319, allocations: 3.92 MB / 0.5316 GB, free: 14.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.589e-05/0.5319, allocations: 12 kB / 0.5316 GB, free: 14.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00797/0.5399, allocations: 4.552 MB / 0.5361 GB, free: 9.414 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.54, allocations: 20.64 kB / 0.5361 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.493e-05/0.54, allocations: 36 kB / 0.5361 GB, free: 9.359 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/0.5413, allocations: 0.5288 MB / 0.5367 GB, free: 8.809 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.544, allocations: 0.7488 MB / 0.5374 GB, free: 8.059 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00956/0.5536, allocations: 9.709 MB / 0.5469 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/0.5563, allocations: 191.7 kB / 0.5471 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000368/0.5567, allocations: 143.9 kB / 0.5472 GB, free: 13.45 MB / 478.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.002916/0.5596, allocations: 1.57 MB / 0.5487 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007591/0.5603, allocations: 361.7 kB / 0.5491 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00673/0.5671, allocations: 3.808 MB / 0.5528 GB, free: 7.656 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/0.5671, allocations: 24 kB / 0.5528 GB, free: 7.633 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.121e-05/0.5671, allocations: 8 kB / 0.5528 GB, free: 7.625 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.5672, allocations: 11.95 kB / 0.5528 GB, free: 7.613 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1891/0.7563, allocations: 8.183 MB / 0.5608 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.7563, allocations: 5.281 kB / 0.5608 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/0.7582, allocations: 409.9 kB / 0.5612 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/0.7601, allocations: 0.7322 MB / 0.5619 GB, free: 140.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/0.7603, allocations: 65.84 kB / 0.562 GB, free: 140.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.7717, allocations: 15.79 MB / 0.5774 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.7717, allocations: 9.281 kB / 0.5774 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008314/0.78, allocations: 5.615 MB / 0.5829 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.7816, allocations: 0.6365 MB / 0.5835 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/0.7821, allocations: 61.52 kB / 0.5836 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.7836, allocations: 138.2 kB / 0.5837 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004379/0.784, allocations: 198.2 kB / 0.5839 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.7842, allocations: 69.52 kB / 0.584 GB, free: 125.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002806/0.787, allocations: 2.125 MB / 0.5861 GB, free: 124.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.787, allocations: 3.781 kB / 0.5861 GB, free: 124.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003308/0.7903, allocations: 0.9926 MB / 0.587 GB, free: 124.4 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.007294/0.7976, allocations: 6.317 MB / 0.5932 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004859/0.8025, allocations: 3.85 MB / 0.597 GB, free: 119.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.8025, allocations: 2 kB / 0.597 GB, free: 119.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003267/0.8057, allocations: 2.641 MB / 0.5995 GB, free: 118.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/0.8095, allocations: 0.9597 MB / 0.6005 GB, free: 118 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04255/0.8521, allocations: 35.37 MB / 0.635 GB, free: 83.06 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/0.855, allocations: 2.898 MB / 0.6379 GB, free: 80.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002261/0.8573, allocations: 0.8112 MB / 0.6386 GB, free: 79.31 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/0.8594, allocations: 2.108 MB / 0.6407 GB, free: 77.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/0.8594, allocations: 0 / 0.6407 GB, free: 77.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1493/1.009, allocations: 93.75 MB / 0.7323 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.08/19.09, allocations: 4.062 kB / 0.7323 GB, free: 15.26 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/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/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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 30.900260149966925]