Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001799/0.001799, allocations: 109.1 kB / 21.22 MB, free: 0.7461 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.00244/0.00244, allocations: 211.7 kB / 24.52 MB, free: 4.141 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.486/1.486, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 63.91 kB / 378.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2404, allocations: 53.41 MB / 432 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01214/0.2526, allocations: 9.76 MB / 441.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006159/0.2587, allocations: 3.179 MB / 444.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.26, allocations: 75.5 kB / 445 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.2618, allocations: 0.7099 MB / 445.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002418/0.2642, allocations: 0.8194 MB / 446.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009418/0.2651, allocations: 411.3 kB / 446.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003354/0.2685, allocations: 2.556 MB / 449.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001925/0.2704, allocations: 1.307 MB / 450.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.2725, allocations: 1.223 MB / 452 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002927/0.2754, allocations: 1.53 MB / 453.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007151/0.2761, allocations: 324 kB / 453.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.2772, allocations: 431.8 kB / 454.3 MB, free: 240 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.2782, allocations: 0.9076 MB / 455.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.2801, allocations: 1.423 MB / 456.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005237/0.2854, allocations: 4.18 MB / 460.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2854, allocations: 0 / 460.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2854, allocations: 0 / 460.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001264/0.2855, allocations: 0 / 460.8 MB, free: 9.699 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007218/0.2927, allocations: 2.904 MB / 463.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2928, allocations: 12.03 kB / 463.7 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.504e-05/0.2928, allocations: 56.41 kB / 463.8 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005028/0.2934, allocations: 320.2 kB / 464.1 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008901/0.2942, allocations: 307.2 kB / 464.4 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003144/0.2974, allocations: 1.471 MB / 465.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.2975, allocations: 160.2 kB / 466 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003897/0.2979, allocations: 208 kB / 466.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005147/0.3031, allocations: 2.807 MB / 469 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.285e-05/0.3031, allocations: 0 / 469 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.3033, allocations: 91.98 kB / 469.1 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.3035, allocations: 108.2 kB / 469.2 MB, free: 1.082 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004447/0.3079, allocations: 2.351 MB / 471.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.3245, allocations: 8.363 MB / 479.9 MB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.3269, allocations: 1.179 MB / 481.1 MB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/0.3286, allocations: 0.8967 MB / 482 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002342/0.3289, allocations: 60.88 kB / 482.1 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.3289, allocations: 43.56 kB / 482.1 MB, free: 3.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.625e-06/0.3289, allocations: 0 / 482.1 MB, free: 3.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01403/0.343, allocations: 5.736 MB / 487.8 MB, free: 14.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.343, allocations: 64.41 kB / 487.9 MB, free: 14.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/0.3454, allocations: 1.445 MB / 489.3 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.3455, allocations: 45.7 kB / 489.4 MB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008865/0.3464, allocations: 1.063 MB / 490.5 MB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004391/0.3468, allocations: 432.3 kB / 490.9 MB, free: 11.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004871/0.3473, allocations: 255.5 kB / 491.1 MB, free: 10.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.3475, allocations: 361.9 kB / 491.5 MB, free: 10.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.3488, allocations: 0.691 MB / 492.2 MB, free: 9.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.3504, allocations: 1.069 MB / 493.2 MB, free: 8.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00296/0.3534, allocations: 1.868 MB / 495.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.3534, allocations: 0 / 495.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004536/0.3579, allocations: 2.335 MB / 497.4 MB, free: 4.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.3579, allocations: 15.94 kB / 497.5 MB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/0.358, allocations: 12 kB / 497.5 MB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.359, allocations: 423.3 kB / 497.9 MB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.3603, allocations: 323.5 kB / 498.2 MB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007911/0.3682, allocations: 6.739 MB / 0.4931 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.3697, allocations: 103.9 kB / 0.4932 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002336/0.3699, allocations: 59.98 kB / 0.4933 GB, free: 12.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001403/0.3713, allocations: 0.6888 MB / 0.4939 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/0.3718, allocations: 166.9 kB / 0.4941 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004208/0.376, allocations: 2.051 MB / 0.4961 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.376, allocations: 12 kB / 0.4961 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.3761, allocations: 4 kB / 0.4961 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.3761, allocations: 3.984 kB / 0.4961 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009039/0.3851, allocations: 4.444 MB / 0.5005 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.3851, allocations: 8 kB / 0.5005 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00095/0.3861, allocations: 216.1 kB / 0.5007 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.3873, allocations: 455 kB / 0.5011 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.3874, allocations: 39.86 kB / 0.5011 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009064/0.3965, allocations: 8.215 MB / 0.5092 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3965, allocations: 0 / 0.5092 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00534/0.4018, allocations: 3.033 MB / 0.5121 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009411/0.4028, allocations: 310.8 kB / 0.5124 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/0.4031, allocations: 35.94 kB / 0.5125 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.4041, allocations: 87.84 kB / 0.5125 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.4044, allocations: 100.7 kB / 0.5126 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.965e-05/0.4044, allocations: 35.98 kB / 0.5127 GB, free: 7.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001788/0.4062, allocations: 0.9888 MB / 0.5136 GB, free: 6.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4062, allocations: 4 kB / 0.5136 GB, free: 6.578 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001731/0.408, allocations: 463.9 kB / 0.5141 GB, free: 6.125 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005982/0.4139, allocations: 3.663 MB / 0.5177 GB, free: 2.379 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004173/0.4181, allocations: 2.079 MB / 0.5197 GB, free: 268 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.4181, allocations: 4.062 kB / 0.5197 GB, free: 264 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002828/0.421, allocations: 1.391 MB / 0.5211 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.4236, allocations: 423.4 kB / 0.5215 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2166/0.6402, allocations: 16.77 MB / 0.5378 GB, free: 99.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.6417, allocations: 1.813 MB / 0.5396 GB, free: 98.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.6428, allocations: 368 kB / 0.54 GB, free: 98.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009009/0.6437, allocations: 0.818 MB / 0.5407 GB, free: 98.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.362e-06/0.6437, allocations: 0 / 0.5407 GB, free: 98.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07344/0.7171, allocations: 43.42 MB / 0.5832 GB, free: 63.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/15.17, allocations: 8 kB / 0.5832 GB, free: 63.06 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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: 21.72541795799043]