Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001863/0.001863, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.91 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2871, allocations: 53.4 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01314/0.3003, allocations: 10.46 MB / 441.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007308/0.3076, allocations: 3.497 MB / 445.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.3097, allocations: 75.5 kB / 445.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002599/0.3123, allocations: 0.831 MB / 446.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003284/0.3155, allocations: 0.8893 MB / 446.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.3168, allocations: 435.3 kB / 447.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004003/0.3208, allocations: 2.77 MB / 450.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002034/0.3228, allocations: 1.352 MB / 451.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.325, allocations: 1.308 MB / 452.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003057/0.328, allocations: 1.619 MB / 454.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007218/0.3287, allocations: 332 kB / 454.7 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.3298, allocations: 443.8 kB / 455.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.3308, allocations: 0.9582 MB / 456.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001903/0.3327, allocations: 1.509 MB / 457.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005548/0.3382, allocations: 4.407 MB / 462.1 MB, free: 7.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.3382, allocations: 4 kB / 462.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3382, allocations: 4 kB / 462.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001163/0.3384, allocations: 0 / 462.1 MB, free: 7.664 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007171/0.3455, allocations: 3.065 MB / 465.1 MB, free: 4.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3456, allocations: 8.031 kB / 465.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004572/0.346, allocations: 321 kB / 465.4 MB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009178/0.347, allocations: 339 kB / 465.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.3502, allocations: 1.558 MB / 467.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.3503, allocations: 168.4 kB / 467.5 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003334/0.3506, allocations: 220 kB / 467.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005162/0.3558, allocations: 2.921 MB / 470.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-05/0.3559, allocations: 0 / 470.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/0.3561, allocations: 91.98 kB / 470.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.3562, allocations: 120.3 kB / 470.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004409/0.3606, allocations: 2.437 MB / 473.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.3761, allocations: 8.861 MB / 482.1 MB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.3783, allocations: 1.193 MB / 483.3 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/0.38, allocations: 0.9171 MB / 484.2 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002467/0.3803, allocations: 48.94 kB / 484.3 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.3803, allocations: 51.56 kB / 484.3 MB, free: 0.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.266e-06/0.3803, allocations: 0 / 484.3 MB, free: 0.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.0146/0.3949, allocations: 6.078 MB / 490.4 MB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.395, allocations: 68.34 kB / 490.5 MB, free: 10.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002619/0.3976, allocations: 1.562 MB / 492.1 MB, free: 9.117 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.3978, allocations: 45.7 kB / 492.1 MB, free: 9.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009159/0.3987, allocations: 1.142 MB / 493.2 MB, free: 7.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.3991, allocations: 456.2 kB / 493.7 MB, free: 7.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004486/0.3996, allocations: 275.5 kB / 494 MB, free: 7.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3997, allocations: 301.1 kB / 494.2 MB, free: 6.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.401, allocations: 0.7144 MB / 495 MB, free: 6.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.4026, allocations: 1.134 MB / 496.1 MB, free: 4.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.4055, allocations: 1.967 MB / 498.1 MB, free: 2.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.4055, allocations: 4 kB / 498.1 MB, free: 2.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004561/0.4101, allocations: 2.448 MB / 0.4888 GB, free: 236 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.4101, allocations: 14.66 kB / 0.4888 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/0.4101, allocations: 12 kB / 0.4888 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.4112, allocations: 423.4 kB / 0.4892 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.4126, allocations: 355.5 kB / 0.4896 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007805/0.4204, allocations: 6.817 MB / 0.4962 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.4219, allocations: 107.8 kB / 0.4963 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.422, allocations: 71.92 kB / 0.4964 GB, free: 8.105 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001347/0.4234, allocations: 0.7123 MB / 0.4971 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000388/0.4238, allocations: 182.9 kB / 0.4973 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.4278, allocations: 2.111 MB / 0.4993 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.4278, allocations: 12 kB / 0.4993 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/0.4279, allocations: 7.938 kB / 0.4993 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.4279, allocations: 7.969 kB / 0.4993 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008833/0.4367, allocations: 4.664 MB / 0.5039 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.4367, allocations: 4 kB / 0.5039 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009575/0.4377, allocations: 228.1 kB / 0.5041 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.4389, allocations: 451 kB / 0.5045 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.584e-05/0.439, allocations: 35.98 kB / 0.5046 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009272/0.4483, allocations: 8.276 MB / 0.5127 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.83e-06/0.4483, allocations: 4 kB / 0.5127 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005781/0.454, allocations: 3.136 MB / 0.5157 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.4552, allocations: 334.8 kB / 0.516 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.4554, allocations: 32 kB / 0.5161 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009371/0.4564, allocations: 87.89 kB / 0.5162 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.4566, allocations: 104.7 kB / 0.5163 GB, free: 3.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.488e-05/0.4567, allocations: 40 kB / 0.5163 GB, free: 3.004 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001749/0.4585, allocations: 1.071 MB / 0.5173 GB, free: 1.938 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4585, allocations: 0 / 0.5173 GB, free: 1.938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001812/0.4603, allocations: 484 kB / 0.5178 GB, free: 1.465 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005862/0.4661, allocations: 3.788 MB / 0.5215 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004063/0.4702, allocations: 2.147 MB / 0.5236 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.4702, allocations: 0.875 kB / 0.5236 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002617/0.4728, allocations: 1.426 MB / 0.525 GB, free: 9.922 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.4752, allocations: 483.4 kB / 0.5255 GB, free: 9.461 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.254/0.7292, allocations: 17.78 MB / 0.5428 GB, free: 97.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001387/0.7306, allocations: 1.868 MB / 0.5446 GB, free: 96.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.7317, allocations: 395.3 kB / 0.545 GB, free: 96.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008693/0.7326, allocations: 0.8763 MB / 0.5459 GB, free: 95.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7326, allocations: 0 / 0.5459 GB, free: 95.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09036/0.8229, allocations: 46.8 MB / 0.5916 GB, free: 53.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/15.66, allocations: 3.938 kB / 0.5916 GB, free: 53.81 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.754928784001095]