Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.0008518/0.0008518, 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.000773/0.000773, 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.8683/0.8683, allocations: 177 MB / 204.1 MB, free: 5.738 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_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.579e-05/1.742e-05, allocations: 3.266 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.007394/0.007412, allocations: 9.071 MB / 333.6 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00464/0.01205, allocations: 3.147 MB / 336.7 MB, free: 3.602 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008831/0.01293, allocations: 75.5 kB / 336.8 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.01422, allocations: 0.6984 MB / 337.5 MB, free: 2.824 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001731/0.01595, allocations: 0.9197 MB / 338.4 MB, free: 1.898 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.01671, allocations: 435.2 kB / 338.9 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002481/0.01919, allocations: 3.093 MB / 342 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.02059, allocations: 1.333 MB / 343.3 MB, free: 12.97 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002149/0.02274, allocations: 2.015 MB / 345.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.02431, allocations: 1.496 MB / 346.8 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003684/0.02468, allocations: 356 kB / 347.1 MB, free: 9.105 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005925/0.02527, allocations: 471.7 kB / 347.6 MB, free: 8.645 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006455/0.02592, allocations: 1.059 MB / 348.7 MB, free: 7.582 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009535/0.02687, allocations: 1.099 MB / 349.8 MB, free: 6.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003138/0.03001, allocations: 4.764 MB / 354.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.03001, allocations: 0 / 354.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.03002, allocations: 0 / 354.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.797e-05/0.03007, allocations: 0 / 354.5 MB, free: 1.703 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.004132/0.03421, allocations: 3.252 MB / 357.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.03425, allocations: 11.98 kB / 357.8 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003142/0.03456, allocations: 345.6 kB / 358.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006841/0.03525, allocations: 378.8 kB / 358.5 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.03725, allocations: 1.708 MB / 360.2 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-05/0.03734, allocations: 177 kB / 360.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002204/0.03756, allocations: 240.3 kB / 360.6 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003311/0.04087, allocations: 3.237 MB / 363.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.217e-05/0.04091, allocations: 7.953 kB / 363.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.04106, allocations: 96 kB / 364 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.083e-05/0.04114, allocations: 104.6 kB / 364.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002906/0.04405, allocations: 2.692 MB / 366.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008889/0.05294, allocations: 8.747 MB / 375.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.0545, allocations: 1.408 MB / 376.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.05564, allocations: 1.039 MB / 377.9 MB, free: 9.766 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001674/0.0558, allocations: 52.97 kB / 378 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.05583, allocations: 47.55 kB / 378 MB, free: 9.656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 4.188e-06/0.05584, allocations: 3.984 kB / 378 MB, free: 9.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.008221/0.06406, allocations: 6.343 MB / 384.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.06409, allocations: 68.66 kB / 384.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.06578, allocations: 1.783 MB / 386.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.22e-05/0.06584, allocations: 49.7 kB / 386.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/0.0664, allocations: 1.186 MB / 387.5 MB, free: 160 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.06664, allocations: 468.2 kB / 387.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.06692, allocations: 279.5 kB / 388.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.376e-05/0.06699, allocations: 308.9 kB / 388.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008328/0.06782, allocations: 0.7925 MB / 389.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009866/0.06881, allocations: 1.205 MB / 390.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00187/0.07068, allocations: 2.094 MB / 392.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.07069, allocations: 4 kB / 392.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002768/0.07345, allocations: 2.604 MB / 395.2 MB, free: 8.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.07348, allocations: 8 kB / 395.2 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.07349, allocations: 12 kB / 395.2 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006051/0.0741, allocations: 427.4 kB / 395.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007276/0.07482, allocations: 359.4 kB / 396 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004502/0.07933, allocations: 6.715 MB / 402.7 MB, free: 200 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009694/0.0803, allocations: 103.9 kB / 402.8 MB, free: 96 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.676e-05/0.08039, allocations: 67.92 kB / 402.9 MB, free: 28 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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.001122/0.08151, allocations: 0.798 MB / 403.7 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.08175, allocations: 194.8 kB / 403.9 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.08436, allocations: 2.292 MB / 406.2 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.08437, allocations: 12 kB / 406.2 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.08438, allocations: 11.94 kB / 406.2 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.08439, allocations: 11.97 kB / 406.2 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00539/0.08978, allocations: 4.729 MB / 410.9 MB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.08978, allocations: 4 kB / 410.9 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005438/0.09033, allocations: 235.6 kB / 411.1 MB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006731/0.091, allocations: 458.6 kB / 411.6 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-05/0.09107, allocations: 35.98 kB / 411.6 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004988/0.09606, allocations: 8.173 MB / 419.8 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.09606, allocations: 4 kB / 419.8 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.09944, allocations: 3.431 MB / 423.2 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005988/0.1, allocations: 366.7 kB / 423.6 MB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.1002, allocations: 35.98 kB / 423.6 MB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004908/0.1007, allocations: 79.91 kB / 423.7 MB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.1009, allocations: 124.7 kB / 423.8 MB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.1009, allocations: 43.98 kB / 423.9 MB, free: 10.33 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.1021, allocations: 1.203 MB / 425.1 MB, free: 9.133 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1021, allocations: 4 kB / 425.1 MB, free: 9.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001228/0.1033, allocations: 0.5078 MB / 425.6 MB, free: 8.621 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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,1,100.0%), (1,6,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.003817/0.1071, allocations: 4.079 MB / 429.7 MB, free: 4.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002594/0.1097, allocations: 2.311 MB / 432 MB, free: 2.102 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1097, allocations: 0 / 432 MB, free: 2.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.1112, allocations: 1.56 MB / 433.5 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.1126, allocations: 471.1 kB / 434 MB, free: 40 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1838/0.2964, allocations: 19.37 MB / 453.4 MB, free: 112.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.2974, allocations: 1.444 MB / 454.8 MB, free: 112.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008996/0.2983, allocations: 439.2 kB / 455.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000784/0.2991, allocations: 0.9307 MB / 456.2 MB, free: 112.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.034e-06/0.2991, allocations: 0 / 456.2 MB, free: 112.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06114/0.3603, allocations: 51.42 MB / 0.4957 GB, free: 65.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.664/9.025, allocations: 4.062 kB / 0.4957 GB, free: 65.14 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.908545430749655]