Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.00172/0.00172, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002147/0.002147, allocations: 212.4 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_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_1_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.001507/0.001507, allocations: 43.92 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2727, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02404/0.2967, allocations: 19.35 MB / 450.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01621/0.313, allocations: 6.391 MB / 456.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005185/0.3181, allocations: 174.9 kB / 457 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004681/0.3228, allocations: 1.506 MB / 458.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006809/0.3296, allocations: 2.132 MB / 460.7 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003407/0.333, allocations: 1.309 MB / 462 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009395/0.3424, allocations: 6.591 MB / 468.6 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004561/0.347, allocations: 3.143 MB / 471.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00532/0.3523, allocations: 3.088 MB / 474.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007228/0.3595, allocations: 3.74 MB / 478.5 MB, free: 6.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001584/0.3611, allocations: 0.8203 MB / 479.3 MB, free: 6.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.3635, allocations: 1.113 MB / 480.5 MB, free: 5.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/0.3655, allocations: 2.045 MB / 482.5 MB, free: 2.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004591/0.3701, allocations: 2.828 MB / 485.3 MB, free: 116 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.3838, allocations: 10.93 MB / 496.3 MB, free: 5.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3838, allocations: 0 / 496.3 MB, free: 5.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3838, allocations: 0 / 496.3 MB, free: 5.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002635/0.3841, allocations: 0 / 496.3 MB, free: 5.148 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01802/0.4021, allocations: 7.023 MB / 0.4915 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.4022, allocations: 12.03 kB / 0.4915 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001052/0.4032, allocations: 0.7329 MB / 0.4922 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004801/0.408, allocations: 1.078 MB / 0.4933 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008124/0.4162, allocations: 3.68 MB / 0.4969 GB, free: 8.473 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003468/0.4165, allocations: 410.9 kB / 0.4973 GB, free: 8.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009247/0.4174, allocations: 0.5234 MB / 0.4978 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.4301, allocations: 7.301 MB / 0.5049 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.4302, allocations: 11.89 kB / 0.5049 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000507/0.4307, allocations: 216 kB / 0.5051 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002679/0.431, allocations: 262.6 kB / 0.5054 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0107/0.4417, allocations: 5.948 MB / 0.5112 GB, free: 9.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04037/0.4821, allocations: 19.95 MB / 0.5307 GB, free: 5.188 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006796/0.4889, allocations: 3.723 MB / 0.5343 GB, free: 1.652 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1955/0.6844, allocations: 2.083 MB / 0.5363 GB, free: 97.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01114/0.6955, allocations: 5.276 MB / 0.5415 GB, free: 96.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.6956, allocations: 58.19 kB / 0.5415 GB, free: 96.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 4.408e-06/0.6956, allocations: 0 / 0.5415 GB, free: 96.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01774/0.7133, allocations: 10.25 MB / 0.5515 GB, free: 92.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.7133, allocations: 77.41 kB / 0.5516 GB, free: 92.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/0.7168, allocations: 3.228 MB / 0.5548 GB, free: 89.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.7169, allocations: 65.7 kB / 0.5548 GB, free: 89.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.718, allocations: 2.578 MB / 0.5573 GB, free: 87.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004074/0.7184, allocations: 0.8659 MB / 0.5582 GB, free: 86.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006628/0.7191, allocations: 0.5595 MB / 0.5587 GB, free: 86.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.178e-05/0.7191, allocations: 309.1 kB / 0.559 GB, free: 86.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.7207, allocations: 1.335 MB / 0.5603 GB, free: 84.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.7226, allocations: 2.371 MB / 0.5627 GB, free: 82.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003683/0.7263, allocations: 3.921 MB / 0.5665 GB, free: 77.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.7263, allocations: 8 kB / 0.5665 GB, free: 77.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.005889/0.7322, allocations: 4.591 MB / 0.571 GB, free: 72.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.7322, allocations: 28.08 kB / 0.571 GB, free: 72.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.7322, allocations: 32 kB / 0.571 GB, free: 72.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.7333, allocations: 0.5367 MB / 0.5716 GB, free: 72.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002316/0.7356, allocations: 0.7332 MB / 0.5723 GB, free: 71.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005956/0.7415, allocations: 9.87 MB / 0.5819 GB, free: 61.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/0.7438, allocations: 187.9 kB / 0.5821 GB, free: 61.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/0.744, allocations: 146.1 kB / 0.5822 GB, free: 60.88 MB / 446.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 (377): * Single equations (assignments): 370 * 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,6,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.001964/0.746, allocations: 1.582 MB / 0.5838 GB, free: 59.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004489/0.7464, allocations: 365.6 kB / 0.5841 GB, free: 58.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005184/0.7516, allocations: 3.829 MB / 0.5879 GB, free: 55.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.7516, allocations: 24 kB / 0.5879 GB, free: 55.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.7516, allocations: 8 kB / 0.5879 GB, free: 55.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.7516, allocations: 15.89 kB / 0.5879 GB, free: 55.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.7626, allocations: 8.226 MB / 0.5959 GB, free: 46.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.7626, allocations: 4 kB / 0.5959 GB, free: 46.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.7642, allocations: 407.4 kB / 0.5963 GB, free: 46.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.7658, allocations: 0.7516 MB / 0.5971 GB, free: 45.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.766, allocations: 67.97 kB / 0.5971 GB, free: 45.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.7763, allocations: 15.97 MB / 0.6127 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.7763, allocations: 4 kB / 0.6127 GB, free: 28.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007282/0.7836, allocations: 5.644 MB / 0.6182 GB, free: 22.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/0.7853, allocations: 0.6395 MB / 0.6189 GB, free: 22.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000827/0.7861, allocations: 56 kB / 0.6189 GB, free: 22.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/0.7879, allocations: 132 kB / 0.619 GB, free: 22.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/0.7882, allocations: 201.5 kB / 0.6192 GB, free: 21.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.7884, allocations: 71.97 kB / 0.6193 GB, free: 21.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002424/0.7908, allocations: 2.139 MB / 0.6214 GB, free: 19.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7908, allocations: 0 / 0.6214 GB, free: 19.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00292/0.7937, allocations: 1.004 MB / 0.6224 GB, free: 18.63 MB / 446.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 (198): * Single equations (assignments): 190 * 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,6,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.007085/0.8008, allocations: 6.346 MB / 0.6286 GB, free: 12.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004994/0.8058, allocations: 3.873 MB / 0.6324 GB, free: 8.238 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.8058, allocations: 0.9375 kB / 0.6324 GB, free: 8.238 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00316/0.809, allocations: 2.666 MB / 0.635 GB, free: 5.469 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/0.8126, allocations: 0.9734 MB / 0.6359 GB, free: 4.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05525/0.8679, allocations: 35.4 MB / 0.6705 GB, free: 15.77 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003384/0.8713, allocations: 2.91 MB / 0.6733 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002475/0.8737, allocations: 0.8113 MB / 0.6741 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002695/0.8764, allocations: 2.116 MB / 0.6762 GB, free: 9.887 MB / 494.1 MB Notification: Performance of SimCode: time 1.402e-06/0.8764, allocations: 0 / 0.6762 GB, free: 9.887 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3913/1.268, allocations: 95.09 MB / 0.769 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.19/21.46, allocations: 3.5 kB / 0.769 GB, free: 158.9 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_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_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 32.54330510299769]