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.0009606/0.0009606, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001099/0.001099, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9319/0.9319, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.037e-05/2.203e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009568/0.00959, allocations: 8.57 MB / 333.1 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005953/0.01554, allocations: 3.006 MB / 336.1 MB, free: 4.246 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.01668, allocations: 71.5 kB / 336.2 MB, free: 4.176 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.01793, allocations: 0.6674 MB / 336.8 MB, free: 3.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.01972, allocations: 0.8419 MB / 337.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006047/0.02033, allocations: 399.3 kB / 338.1 MB, free: 2.266 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001897/0.02222, allocations: 2.645 MB / 340.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.02333, allocations: 1.264 MB / 342 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.02495, allocations: 1.778 MB / 343.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.02611, allocations: 1.298 MB / 345.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.02635, allocations: 316 kB / 345.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000519/0.02687, allocations: 423.8 kB / 345.8 MB, free: 10.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005354/0.02741, allocations: 0.931 MB / 346.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006616/0.02807, allocations: 0.9743 MB / 347.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.03092, allocations: 4.226 MB / 351.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.03092, allocations: 0 / 351.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.03092, allocations: 0 / 351.9 MB, free: 4.328 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.999e-05/0.03096, allocations: 0 / 351.9 MB, free: 4.328 MB / 314.7 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.003667/0.03463, allocations: 2.885 MB / 354.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.03468, allocations: 11.98 kB / 354.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002947/0.03498, allocations: 308.2 kB / 355.1 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006257/0.0356, allocations: 307.2 kB / 355.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.0375, allocations: 1.471 MB / 356.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.465e-05/0.0376, allocations: 164.6 kB / 357 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.03781, allocations: 212.3 kB / 357.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/0.04102, allocations: 2.904 MB / 360.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.254e-05/0.04106, allocations: 4 kB / 360.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.04119, allocations: 87.98 kB / 360.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-05/0.04128, allocations: 108.1 kB / 360.3 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002726/0.044, allocations: 2.343 MB / 362.7 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008562/0.05257, allocations: 7.705 MB / 370.4 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.05397, allocations: 1.179 MB / 371.6 MB, free: 176 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.05502, allocations: 0.8968 MB / 372.5 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/0.05519, allocations: 48.95 kB / 372.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.05522, allocations: 51.5 kB / 372.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 3.627e-06/0.05522, allocations: 0 / 372.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=116): time 0.007791/0.06301, allocations: 5.732 MB / 378.3 MB, free: 9.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.06305, allocations: 64.41 kB / 378.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.06449, allocations: 1.461 MB / 379.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.009e-05/0.06455, allocations: 45.7 kB / 379.9 MB, free: 7.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/0.06505, allocations: 1.071 MB / 380.9 MB, free: 6.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.06529, allocations: 432.3 kB / 381.4 MB, free: 6.297 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002828/0.06557, allocations: 251.5 kB / 381.6 MB, free: 6.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.06567, allocations: 361.9 kB / 382 MB, free: 5.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007835/0.06645, allocations: 0.691 MB / 382.7 MB, free: 4.996 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008472/0.0673, allocations: 1.074 MB / 383.7 MB, free: 3.762 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.06902, allocations: 1.868 MB / 385.6 MB, free: 1.734 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.06903, allocations: 4 kB / 385.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002742/0.07177, allocations: 2.331 MB / 387.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.0718, allocations: 11.28 kB / 387.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.07182, allocations: 12 kB / 388 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006359/0.07245, allocations: 426.3 kB / 388.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.07313, allocations: 323.5 kB / 388.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004608/0.07774, allocations: 6.685 MB / 395.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.07876, allocations: 103.8 kB / 395.5 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.158e-05/0.07883, allocations: 56 kB / 395.5 MB, free: 7.426 MB / 362.7 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.0009792/0.07981, allocations: 0.6889 MB / 396.2 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.08001, allocations: 174.9 kB / 396.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.08233, allocations: 2.044 MB / 398.4 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.08233, allocations: 12 kB / 398.4 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.08234, allocations: 4 kB / 398.4 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.08235, allocations: 8.078 kB / 398.5 MB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.08726, allocations: 4.222 MB / 402.7 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.08727, allocations: 4 kB / 402.7 MB, free: 132 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.08774, allocations: 215.6 kB / 402.9 MB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.08838, allocations: 446.5 kB / 403.3 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.978e-05/0.08844, allocations: 39.97 kB / 403.4 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005135/0.09357, allocations: 8.146 MB / 411.5 MB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.09358, allocations: 4 kB / 411.5 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003267/0.09684, allocations: 3.029 MB / 414.5 MB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/0.09749, allocations: 310.8 kB / 414.8 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.09761, allocations: 32.09 kB / 414.9 MB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.09805, allocations: 79.91 kB / 415 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.09824, allocations: 104.7 kB / 415.1 MB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/0.09829, allocations: 35.98 kB / 415.1 MB, free: 3.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001126/0.09941, allocations: 0.9965 MB / 416.1 MB, free: 2.188 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.09941, allocations: 0 / 416.1 MB, free: 2.188 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001166/0.1006, allocations: 459.9 kB / 416.5 MB, free: 1.738 MB / 378.7 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.003336/0.1039, allocations: 3.655 MB / 420.2 MB, free: 14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.1063, allocations: 2.083 MB / 422.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1063, allocations: 320 / 422.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.1076, allocations: 1.391 MB / 423.7 MB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.109, allocations: 422.3 kB / 424.1 MB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/0.1285, allocations: 16.7 MB / 440.8 MB, free: 8.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009427/0.1294, allocations: 1.235 MB / 442 MB, free: 7.383 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007466/0.1302, allocations: 369.6 kB / 442.4 MB, free: 7.016 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000717/0.1309, allocations: 0.8166 MB / 443.2 MB, free: 6.199 MB / 410.7 MB Notification: Performance of SimCode: time 1.382e-06/0.1309, allocations: 0 / 443.2 MB, free: 6.199 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/0.3308, allocations: 44.96 MB / 488.2 MB, free: 84.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.566/8.897, allocations: 11.95 kB / 488.2 MB, free: 84.4 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.864638686180115]