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.001928/0.001928, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.00248/0.00248, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.584/1.584, allocations: 207.6 MB / 235.3 MB, free: 10 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="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.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.001976/0.001976, allocations: 55.92 kB / 347.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2996, allocations: 49.16 MB / 396.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02692/0.3265, allocations: 21.82 MB / 418.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.3443, allocations: 6.482 MB / 424.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006318/0.3506, allocations: 152.5 kB / 424.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005968/0.3566, allocations: 1.553 MB / 426.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009824/0.3664, allocations: 2.113 MB / 428.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004687/0.3711, allocations: 1.351 MB / 429.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.3844, allocations: 6.535 MB / 436.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005829/0.3902, allocations: 3.087 MB / 439.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006462/0.3967, allocations: 3.065 MB / 442.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007186/0.4039, allocations: 3.635 MB / 446.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002552/0.4064, allocations: 0.8203 MB / 447 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004618/0.4111, allocations: 1.105 MB / 448.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003654/0.4147, allocations: 2.057 MB / 450.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007153/0.4219, allocations: 3.528 MB / 453.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01714/0.439, allocations: 10.82 MB / 464.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.439, allocations: 0 / 464.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.439, allocations: 0 / 464.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003617/0.4394, allocations: 0 / 464.5 MB, free: 14.9 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.0211/0.4605, allocations: 7.004 MB / 471.5 MB, free: 7.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.4605, allocations: 11.98 kB / 471.5 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001694/0.4622, allocations: 0.7329 MB / 472.2 MB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005417/0.4676, allocations: 1.094 MB / 473.3 MB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009309/0.4769, allocations: 3.438 MB / 476.8 MB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004353/0.4774, allocations: 406.9 kB / 477.2 MB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001586/0.479, allocations: 0.5311 MB / 477.7 MB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01816/0.4971, allocations: 7.056 MB / 484.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003189/0.4974, allocations: 7.953 kB / 484.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.499, allocations: 224 kB / 485 MB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004923/0.4995, allocations: 262.5 kB / 485.2 MB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.5152, allocations: 5.937 MB / 491.2 MB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05123/0.5665, allocations: 21.79 MB / 0.5009 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008481/0.5749, allocations: 3.702 MB / 0.5046 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004365/0.5793, allocations: 1.992 MB / 0.5065 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01491/0.5942, allocations: 5.757 MB / 0.5121 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.548e-05/0.5943, allocations: 60.55 kB / 0.5122 GB, free: 2.273 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 5.541e-06/0.5943, allocations: 0 / 0.5122 GB, free: 2.273 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02515/0.6194, allocations: 10.22 MB / 0.5222 GB, free: 8.043 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/0.6195, allocations: 77.41 kB / 0.5222 GB, free: 7.957 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007279/0.6268, allocations: 3.156 MB / 0.5253 GB, free: 4.801 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.6271, allocations: 69.64 kB / 0.5254 GB, free: 4.727 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002525/0.6296, allocations: 2.572 MB / 0.5279 GB, free: 2.133 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/0.6306, allocations: 0.8676 MB / 0.5287 GB, free: 1.258 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001273/0.6319, allocations: 0.5617 MB / 0.5293 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6321, allocations: 301.1 kB / 0.5296 GB, free: 400 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002602/0.6347, allocations: 1.334 MB / 0.5309 GB, free: 15.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003549/0.6382, allocations: 2.346 MB / 0.5332 GB, free: 12.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006238/0.6444, allocations: 3.924 MB / 0.537 GB, free: 7.859 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-05/0.6445, allocations: 8 kB / 0.537 GB, free: 7.852 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009385/0.6539, allocations: 4.564 MB / 0.5415 GB, free: 3.215 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.6539, allocations: 16 kB / 0.5415 GB, free: 3.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.835e-05/0.654, allocations: 32 kB / 0.5415 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.6553, allocations: 0.5216 MB / 0.542 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00286/0.6582, allocations: 0.7487 MB / 0.5428 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/0.6687, allocations: 9.764 MB / 0.5523 GB, free: 7.551 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003156/0.6719, allocations: 183.8 kB / 0.5525 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005232/0.6724, allocations: 147.9 kB / 0.5526 GB, free: 7.227 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.003708/0.6761, allocations: 1.574 MB / 0.5541 GB, free: 5.641 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/0.6774, allocations: 361.7 kB / 0.5545 GB, free: 5.285 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008286/0.6857, allocations: 3.8 MB / 0.5582 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/0.6857, allocations: 24 kB / 0.5582 GB, free: 1.414 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.152e-05/0.6857, allocations: 8 kB / 0.5582 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-05/0.6858, allocations: 15.95 kB / 0.5582 GB, free: 1.391 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2389/0.9247, allocations: 8.688 MB / 0.5667 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/0.9247, allocations: 7.438 kB / 0.5667 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/0.9265, allocations: 411 kB / 0.5671 GB, free: 140.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.9284, allocations: 0.7303 MB / 0.5678 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/0.9286, allocations: 66.33 kB / 0.5679 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.9416, allocations: 15.91 MB / 0.5834 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.9416, allocations: 9.531 kB / 0.5835 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/0.9518, allocations: 5.604 MB / 0.5889 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002165/0.954, allocations: 0.6448 MB / 0.5896 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004593/0.9545, allocations: 61.62 kB / 0.5896 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/0.956, allocations: 137.4 kB / 0.5897 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/0.9564, allocations: 193.3 kB / 0.5899 GB, free: 124.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.9565, allocations: 76.94 kB / 0.59 GB, free: 124.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002882/0.9594, allocations: 2.118 MB / 0.5921 GB, free: 123.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.9594, allocations: 3.562 kB / 0.5921 GB, free: 123.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003481/0.9629, allocations: 0.991 MB / 0.593 GB, free: 123.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.00772/0.9706, allocations: 6.317 MB / 0.5992 GB, free: 120.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005187/0.9758, allocations: 3.849 MB / 0.603 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.9758, allocations: 4 kB / 0.603 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003313/0.9791, allocations: 2.643 MB / 0.6056 GB, free: 114.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/0.9835, allocations: 0.9627 MB / 0.6065 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0487/1.032, allocations: 35.4 MB / 0.6411 GB, free: 76.99 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/1.035, allocations: 3.4 MB / 0.6444 GB, free: 73.55 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002282/1.037, allocations: 0.8156 MB / 0.6452 GB, free: 72.74 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001994/1.039, allocations: 2.1 MB / 0.6472 GB, free: 70.64 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/1.039, allocations: 0 / 0.6472 GB, free: 70.64 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1615/1.2, allocations: 91.45 MB / 0.7365 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.23/20.43, allocations: 3.938 kB / 0.7365 GB, free: 11.03 MB / 0.4981 GB " [Timeout remaining time 639] (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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 28.858467817073688]