Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.001761/0.001761, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001955/0.001955, allocations: 187.3 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_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_0_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.001599/0.001599, allocations: 51.92 kB / 370.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3266, allocations: 52.19 MB / 422.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02691/0.3535, allocations: 21.89 MB / 444.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.3691, allocations: 6.433 MB / 451 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004842/0.3739, allocations: 170.9 kB / 451.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00551/0.3794, allocations: 1.56 MB / 452.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.3879, allocations: 2.17 MB / 454.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004557/0.3924, allocations: 1.315 MB / 456.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01138/0.4038, allocations: 6.541 MB / 462.7 MB, free: 6.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007376/0.4112, allocations: 3.136 MB / 465.9 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006027/0.4172, allocations: 3.069 MB / 468.9 MB, free: 28 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007097/0.4243, allocations: 3.635 MB / 472.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002694/0.427, allocations: 0.8164 MB / 473.4 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003736/0.4308, allocations: 1.109 MB / 474.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003677/0.4344, allocations: 2.049 MB / 476.6 MB, free: 8.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00683/0.4413, allocations: 3.536 MB / 480.1 MB, free: 4.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/0.4582, allocations: 10.83 MB / 490.9 MB, free: 9.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.4582, allocations: 4 kB / 490.9 MB, free: 9.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4582, allocations: 0 / 490.9 MB, free: 9.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003445/0.4585, allocations: 0 / 490.9 MB, free: 9.973 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.02114/0.4797, allocations: 7.011 MB / 497.9 MB, free: 2.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4797, allocations: 8.031 kB / 497.9 MB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002175/0.4819, allocations: 0.7368 MB / 498.7 MB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005825/0.4877, allocations: 1.086 MB / 499.8 MB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009944/0.4977, allocations: 3.676 MB / 0.4916 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003937/0.4981, allocations: 410.8 kB / 0.492 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/0.4996, allocations: 0.5272 MB / 0.4925 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.5149, allocations: 7.052 MB / 0.4994 GB, free: 5.254 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/0.515, allocations: 19.88 kB / 0.4995 GB, free: 5.234 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006735/0.5157, allocations: 216 kB / 0.4997 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000275/0.516, allocations: 258.6 kB / 0.4999 GB, free: 4.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01376/0.5297, allocations: 5.948 MB / 0.5057 GB, free: 14.81 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04804/0.5778, allocations: 21.79 MB / 0.527 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007894/0.5857, allocations: 3.712 MB / 0.5306 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004099/0.5898, allocations: 1.98 MB / 0.5326 GB, free: 2.953 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2076/0.7974, allocations: 5.745 MB / 0.5382 GB, free: 101.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.7974, allocations: 61.11 kB / 0.5382 GB, free: 101.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 3.778e-06/0.7974, allocations: 2.938 kB / 0.5382 GB, free: 101.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01894/0.8163, allocations: 10.19 MB / 0.5482 GB, free: 97.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.8164, allocations: 77.19 kB / 0.5482 GB, free: 97.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.8202, allocations: 3.15 MB / 0.5513 GB, free: 96.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/0.8204, allocations: 68.98 kB / 0.5514 GB, free: 96.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.8216, allocations: 2.565 MB / 0.5539 GB, free: 94.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005145/0.8221, allocations: 0.8743 MB / 0.5548 GB, free: 94.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006768/0.8227, allocations: 0.5581 MB / 0.5553 GB, free: 94.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.542e-05/0.8228, allocations: 304.9 kB / 0.5556 GB, free: 93.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.8245, allocations: 1.333 MB / 0.5569 GB, free: 93.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001995/0.8265, allocations: 2.348 MB / 0.5592 GB, free: 91.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003935/0.8304, allocations: 3.921 MB / 0.563 GB, free: 87.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/0.8304, allocations: 9.812 kB / 0.563 GB, free: 87.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006161/0.8366, allocations: 4.561 MB / 0.5675 GB, free: 82.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.8366, allocations: 27.92 kB / 0.5675 GB, free: 82.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-05/0.8367, allocations: 32 kB / 0.5675 GB, free: 82.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.8377, allocations: 0.5134 MB / 0.568 GB, free: 82.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/0.84, allocations: 0.7487 MB / 0.5688 GB, free: 81.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006246/0.8463, allocations: 9.766 MB / 0.5783 GB, free: 71.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/0.8489, allocations: 191.6 kB / 0.5785 GB, free: 71.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/0.8491, allocations: 140 kB / 0.5786 GB, free: 70.91 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 (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.002233/0.8513, allocations: 1.576 MB / 0.5802 GB, free: 69.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006264/0.852, allocations: 357.7 kB / 0.5805 GB, free: 68.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00543/0.8574, allocations: 3.802 MB / 0.5842 GB, free: 65.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.8574, allocations: 27.89 kB / 0.5842 GB, free: 65.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.8574, allocations: 8 kB / 0.5842 GB, free: 65.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.8574, allocations: 15.95 kB / 0.5843 GB, free: 65.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/0.8715, allocations: 8.692 MB / 0.5927 GB, free: 56.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.8715, allocations: 4 kB / 0.5928 GB, free: 56.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.8731, allocations: 412 kB / 0.5931 GB, free: 55.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.8748, allocations: 0.7435 MB / 0.5939 GB, free: 55.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/0.8749, allocations: 71.91 kB / 0.5939 GB, free: 55.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/0.886, allocations: 15.92 MB / 0.6095 GB, free: 38.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.886, allocations: 4 kB / 0.6095 GB, free: 38.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008477/0.8944, allocations: 5.62 MB / 0.615 GB, free: 32.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/0.8963, allocations: 0.6382 MB / 0.6156 GB, free: 31.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009412/0.8972, allocations: 59.98 kB / 0.6157 GB, free: 31.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/0.8993, allocations: 139.9 kB / 0.6158 GB, free: 31.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004022/0.8997, allocations: 185.5 kB / 0.616 GB, free: 31.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/0.8999, allocations: 71.98 kB / 0.616 GB, free: 31.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003359/0.9032, allocations: 2.127 MB / 0.6181 GB, free: 29.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9032, allocations: 0 / 0.6181 GB, free: 29.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00383/0.9071, allocations: 0.996 MB / 0.6191 GB, free: 28.33 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 (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.008188/0.9153, allocations: 6.327 MB / 0.6253 GB, free: 21.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005561/0.9208, allocations: 3.845 MB / 0.629 GB, free: 17.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.9208, allocations: 4.125 kB / 0.629 GB, free: 17.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003531/0.9244, allocations: 2.64 MB / 0.6316 GB, free: 15.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005493/0.9298, allocations: 0.9525 MB / 0.6325 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06197/0.9918, allocations: 35.35 MB / 0.6671 GB, free: 9.605 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006263/0.9981, allocations: 3.415 MB / 0.6704 GB, free: 6.152 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003249/1.001, allocations: 0.8073 MB / 0.6712 GB, free: 5.344 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003402/1.005, allocations: 2.104 MB / 0.6732 GB, free: 3.238 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/1.005, allocations: 0 / 0.6732 GB, free: 3.238 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5189/1.524, allocations: 91.42 MB / 0.7625 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.34/20.86, allocations: 15.84 kB / 0.7625 GB, free: 178.5 MB / 0.5294 GB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_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_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 28.915196560090408]