Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001492/0.001492, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001691/0.001691, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.442/1.442, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 47.92 kB / 378.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2527, allocations: 53.36 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02332/0.2761, allocations: 21.08 MB / 453 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.2899, allocations: 6.196 MB / 459.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005315/0.2952, allocations: 170.9 kB / 459.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005863/0.3011, allocations: 1.436 MB / 460.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009689/0.3108, allocations: 1.996 MB / 462.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005667/0.3164, allocations: 1.308 MB / 464.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.3292, allocations: 6.165 MB / 470.3 MB, free: 336 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008797/0.338, allocations: 3.034 MB / 473.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007182/0.3452, allocations: 2.925 MB / 476.3 MB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008208/0.3534, allocations: 3.573 MB / 479.8 MB, free: 6.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003139/0.3566, allocations: 0.7812 MB / 480.6 MB, free: 5.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004525/0.3611, allocations: 1.093 MB / 481.7 MB, free: 4.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004452/0.3655, allocations: 1.975 MB / 483.7 MB, free: 2.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009056/0.3746, allocations: 3.357 MB / 487 MB, free: 15.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01878/0.3934, allocations: 10.39 MB / 497.4 MB, free: 5.035 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.3934, allocations: 4 kB / 497.4 MB, free: 5.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3934, allocations: 0 / 497.4 MB, free: 5.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004541/0.3938, allocations: 0 / 497.4 MB, free: 5.031 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02398/0.4178, allocations: 6.698 MB / 0.4923 GB, free: 14.26 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.4179, allocations: 8.031 kB / 0.4923 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001715/0.418, allocations: 138.5 kB / 0.4924 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002657/0.4207, allocations: 0.7 MB / 0.4931 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006478/0.4272, allocations: 1.024 MB / 0.4941 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.4384, allocations: 3.521 MB / 0.4976 GB, free: 8.793 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005208/0.4389, allocations: 394.4 kB / 0.4979 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002123/0.441, allocations: 0.496 MB / 0.4984 GB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.4567, allocations: 6.79 MB / 0.5051 GB, free: 1.051 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000134/0.4568, allocations: 15.94 kB / 0.5051 GB, free: 1.035 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005304/0.4573, allocations: 208 kB / 0.5053 GB, free: 0.832 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000268/0.4576, allocations: 246.2 kB / 0.5055 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/0.4692, allocations: 5.759 MB / 0.5111 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0416/0.5108, allocations: 20.57 MB / 0.5312 GB, free: 5.758 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007673/0.5185, allocations: 3.711 MB / 0.5348 GB, free: 2.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004107/0.5226, allocations: 2.046 MB / 0.5368 GB, free: 196 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2577/0.7803, allocations: 5.554 MB / 0.5423 GB, free: 94.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/0.7804, allocations: 61.58 kB / 0.5423 GB, free: 94.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=205): time 4.278e-06/0.7804, allocations: 0 / 0.5423 GB, free: 94.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=222): time 0.01839/0.7988, allocations: 9.578 MB / 0.5517 GB, free: 91.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.7988, allocations: 77.03 kB / 0.5518 GB, free: 91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/0.8026, allocations: 2.924 MB / 0.5546 GB, free: 89.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.8027, allocations: 61.39 kB / 0.5547 GB, free: 89.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.8039, allocations: 2.432 MB / 0.557 GB, free: 88.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005129/0.8044, allocations: 0.8039 MB / 0.5578 GB, free: 87.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006556/0.8051, allocations: 0.5164 MB / 0.5583 GB, free: 87.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.607e-05/0.8052, allocations: 308.5 kB / 0.5586 GB, free: 87.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.8068, allocations: 1.269 MB / 0.5599 GB, free: 86.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002079/0.8089, allocations: 2.177 MB / 0.562 GB, free: 84.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00375/0.8126, allocations: 3.665 MB / 0.5656 GB, free: 80.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.8126, allocations: 9.75 kB / 0.5656 GB, free: 80.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005931/0.8186, allocations: 4.329 MB / 0.5698 GB, free: 76.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.8186, allocations: 16 kB / 0.5698 GB, free: 76.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/0.8186, allocations: 32.03 kB / 0.5699 GB, free: 76.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.8198, allocations: 0.5429 MB / 0.5704 GB, free: 75.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.8219, allocations: 0.6786 MB / 0.571 GB, free: 74.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00645/0.8283, allocations: 9.82 MB / 0.5806 GB, free: 64.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/0.831, allocations: 187.8 kB / 0.5808 GB, free: 64.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.8312, allocations: 131.9 kB / 0.5809 GB, free: 64.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,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.002819/0.834, allocations: 1.527 MB / 0.5824 GB, free: 62.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008847/0.8349, allocations: 333.9 kB / 0.5827 GB, free: 62.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/0.8409, allocations: 3.661 MB / 0.5863 GB, free: 58.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.8409, allocations: 20 kB / 0.5863 GB, free: 58.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.37e-05/0.8409, allocations: 8 kB / 0.5864 GB, free: 58.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.8409, allocations: 7.969 kB / 0.5864 GB, free: 58.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.8545, allocations: 8.244 MB / 0.5944 GB, free: 50.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.8545, allocations: 8.094 kB / 0.5944 GB, free: 50.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.8559, allocations: 375.5 kB / 0.5948 GB, free: 50 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/0.8575, allocations: 0.7441 MB / 0.5955 GB, free: 49.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.8577, allocations: 63.97 kB / 0.5956 GB, free: 49.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.8688, allocations: 15.94 MB / 0.6111 GB, free: 32.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.8688, allocations: 7.938 kB / 0.6111 GB, free: 32.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007934/0.8767, allocations: 5.341 MB / 0.6164 GB, free: 26.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/0.8784, allocations: 0.6031 MB / 0.6169 GB, free: 26.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/0.8796, allocations: 48 kB / 0.617 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002237/0.8818, allocations: 140 kB / 0.6171 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004478/0.8823, allocations: 177.5 kB / 0.6173 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/0.8824, allocations: 67.98 kB / 0.6174 GB, free: 25.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003647/0.8861, allocations: 1.984 MB / 0.6193 GB, free: 23.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8861, allocations: 0 / 0.6193 GB, free: 23.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004087/0.8902, allocations: 0.9374 MB / 0.6202 GB, free: 22.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008004/0.8982, allocations: 6.059 MB / 0.6261 GB, free: 16.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00546/0.9036, allocations: 3.693 MB / 0.6297 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.9036, allocations: 0 / 0.6297 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003315/0.907, allocations: 2.572 MB / 0.6322 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004683/0.9116, allocations: 0.8611 MB / 0.6331 GB, free: 9.539 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05966/0.9713, allocations: 33.2 MB / 0.6655 GB, free: 7.121 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004923/0.9762, allocations: 3.306 MB / 0.6687 GB, free: 3.781 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002719/0.9789, allocations: 0.758 MB / 0.6695 GB, free: 3.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003086/0.982, allocations: 1.952 MB / 0.6714 GB, free: 1.066 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/0.982, allocations: 4 kB / 0.6714 GB, free: 1.062 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.088/2.07, allocations: 85.23 MB / 0.7546 GB, free: 174 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.25/19.32, allocations: 12.56 kB / 0.7546 GB, free: 174 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 30.615572676993906]