Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.001408/0.001408, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001441/0.001441, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.398/1.398, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 51.92 kB / 371.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2513, allocations: 52.19 MB / 423.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01233/0.2636, allocations: 9.096 MB / 432.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006802/0.2704, allocations: 3.229 MB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.2716, allocations: 71.56 kB / 435.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.2735, allocations: 0.7491 MB / 436.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002559/0.276, allocations: 0.8932 MB / 437.4 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009271/0.277, allocations: 423.5 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003607/0.2806, allocations: 2.765 MB / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/0.2826, allocations: 1.348 MB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.2844, allocations: 1.293 MB / 443.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.2867, allocations: 1.615 MB / 444.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004772/0.2872, allocations: 340 kB / 445.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000898/0.2881, allocations: 435.8 kB / 445.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009627/0.289, allocations: 0.9504 MB / 446.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.2905, allocations: 1.214 MB / 447.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004799/0.2953, allocations: 4.418 MB / 452.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2953, allocations: 4 kB / 452.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2953, allocations: 0 / 452.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.797e-05/0.2954, allocations: 3.938 kB / 452.2 MB, free: 1.43 MB / 350.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.005994/0.3014, allocations: 3.053 MB / 455.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3014, allocations: 12.03 kB / 455.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.003e-05/0.3015, allocations: 56.61 kB / 455.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004251/0.3019, allocations: 328.9 kB / 455.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000865/0.3028, allocations: 327 kB / 456 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.3057, allocations: 1.566 MB / 457.5 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.3058, allocations: 168.4 kB / 457.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.3062, allocations: 224 kB / 457.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005286/0.3115, allocations: 3.017 MB / 460.9 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.625e-05/0.3115, allocations: 11.98 kB / 460.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.3117, allocations: 88 kB / 461 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.3119, allocations: 120.3 kB / 461.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004489/0.3164, allocations: 2.43 MB / 463.6 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01365/0.33, allocations: 8.159 MB / 471.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.3324, allocations: 1.178 MB / 472.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.3341, allocations: 0.9131 MB / 473.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002761/0.3344, allocations: 56.95 kB / 473.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.84e-05/0.3344, allocations: 43.56 kB / 473.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.915e-06/0.3344, allocations: 0 / 473.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01438/0.3488, allocations: 6.063 MB / 480 MB, free: 5.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.3489, allocations: 68.39 kB / 480 MB, free: 5.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002497/0.3514, allocations: 1.565 MB / 481.6 MB, free: 3.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.833e-05/0.3515, allocations: 49.7 kB / 481.7 MB, free: 3.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009197/0.3524, allocations: 1.138 MB / 482.8 MB, free: 2.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003797/0.3528, allocations: 452.1 kB / 483.2 MB, free: 1.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004491/0.3532, allocations: 271.5 kB / 483.5 MB, free: 1.508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3534, allocations: 305.1 kB / 483.8 MB, free: 1.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.3546, allocations: 0.7066 MB / 484.5 MB, free: 0.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.3562, allocations: 1.142 MB / 485.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.359, allocations: 1.967 MB / 487.6 MB, free: 13.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.317e-06/0.359, allocations: 7.938 kB / 487.6 MB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004352/0.3633, allocations: 2.444 MB / 490.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3634, allocations: 8 kB / 490.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/0.3634, allocations: 20 kB / 490.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3644, allocations: 419.4 kB / 490.5 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.3657, allocations: 355.4 kB / 490.8 MB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007473/0.3732, allocations: 6.771 MB / 497.6 MB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.3744, allocations: 111.8 kB / 497.7 MB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.3746, allocations: 63.94 kB / 497.8 MB, free: 2.48 MB / 398.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.001304/0.3759, allocations: 0.7173 MB / 498.5 MB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/0.3762, allocations: 182.8 kB / 498.7 MB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003965/0.3801, allocations: 2.119 MB / 0.4891 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.3802, allocations: 12 kB / 0.4891 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.3802, allocations: 11.94 kB / 0.4891 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.3802, allocations: 11.97 kB / 0.4891 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0078/0.388, allocations: 4.395 MB / 0.4934 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.388, allocations: 4 kB / 0.4934 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009556/0.3889, allocations: 224.1 kB / 0.4936 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001247/0.3902, allocations: 458.9 kB / 0.494 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.156e-05/0.3903, allocations: 31.98 kB / 0.4941 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008721/0.399, allocations: 8.222 MB / 0.5021 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.399, allocations: 7.938 kB / 0.5021 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005487/0.4045, allocations: 3.14 MB / 0.5052 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008422/0.4053, allocations: 330.7 kB / 0.5055 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/0.4056, allocations: 28 kB / 0.5055 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009471/0.4066, allocations: 87.89 kB / 0.5056 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.4068, allocations: 100.7 kB / 0.5057 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.4069, allocations: 39.98 kB / 0.5057 GB, free: 13.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001722/0.4086, allocations: 1.074 MB / 0.5068 GB, free: 12.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4086, allocations: 0 / 0.5068 GB, free: 12.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0017/0.4103, allocations: 488.1 kB / 0.5073 GB, free: 12.13 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.005726/0.416, allocations: 3.783 MB / 0.5109 GB, free: 8.262 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00393/0.42, allocations: 2.15 MB / 0.513 GB, free: 6.066 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.42, allocations: 0 / 0.513 GB, free: 6.066 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/0.4224, allocations: 1.424 MB / 0.5144 GB, free: 4.594 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.4246, allocations: 485 kB / 0.5149 GB, free: 4.129 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02768/0.4523, allocations: 17.76 MB / 0.5322 GB, free: 1.652 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001616/0.4539, allocations: 1.298 MB / 0.5335 GB, free: 324 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.4551, allocations: 390.8 kB / 0.5339 GB, free: 15.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.4563, allocations: 0.8781 MB / 0.5347 GB, free: 15.05 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4563, allocations: 0 / 0.5347 GB, free: 15.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.7354, allocations: 48.45 MB / 0.5821 GB, free: 102.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/15.81, allocations: 3.75 kB / 0.5821 GB, free: 102.1 MB / 462.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 22.28678282594774]