Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001389/0.001389, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001508/0.001508, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.432/1.432, allocations: 230.2 MB / 254.5 MB, free: 15.39 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.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 63.89 kB / 373.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1075, allocations: 53.32 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0138/0.1213, allocations: 11.81 MB / 438.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006558/0.1279, allocations: 3.257 MB / 441.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.1294, allocations: 31.94 kB / 441.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.1313, allocations: 0.6831 MB / 442.5 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002361/0.1337, allocations: 0.7251 MB / 443.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009563/0.1346, allocations: 411.5 kB / 443.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/0.1377, allocations: 2.234 MB / 445.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.1388, allocations: 0.6571 MB / 446.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.1401, allocations: 0.8483 MB / 447.3 MB, free: 208 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2138/0.3538, allocations: 0.9037 MB / 448.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.355, allocations: 219.7 kB / 448.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.3564, allocations: 258.8 kB / 448.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007176/0.3571, allocations: 425.6 kB / 449.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.3594, allocations: 1.023 MB / 450.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006122/0.3655, allocations: 2.687 MB / 452.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3655, allocations: 0 / 452.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3655, allocations: 1.938 kB / 452.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.3656, allocations: 1.859 kB / 452.8 MB, free: 10.94 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.007514/0.3731, allocations: 2.114 MB / 454.9 MB, free: 9.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3732, allocations: 12.44 kB / 454.9 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006365/0.3738, allocations: 219 kB / 455.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.3751, allocations: 264.5 kB / 455.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/0.3775, allocations: 1.055 MB / 456.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3776, allocations: 118.2 kB / 456.6 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.3779, allocations: 157.4 kB / 456.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/0.3812, allocations: 1.487 MB / 458.2 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.3813, allocations: 12.58 kB / 458.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001717/0.3814, allocations: 67.56 kB / 458.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.491e-05/0.3815, allocations: 41.19 kB / 458.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002247/0.3838, allocations: 0.9716 MB / 459.3 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008667/0.3924, allocations: 6.535 MB / 465.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008067/0.3932, allocations: 381.3 kB / 466.2 MB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.3936, allocations: 204.4 kB / 466.4 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.3937, allocations: 11.44 kB / 466.4 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004576/0.3941, allocations: 270.6 kB / 466.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.036e-06/0.3941, allocations: 1.031 kB / 466.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003394/0.3975, allocations: 1.783 MB / 468.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.3976, allocations: 162.2 kB / 468.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.3993, allocations: 1.276 MB / 469.9 MB, free: 2.059 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3993, allocations: 36.45 kB / 470 MB, free: 2.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005392/0.3998, allocations: 0.8953 MB / 470.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.4, allocations: 219 kB / 471.1 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.4002, allocations: 220.7 kB / 471.3 MB, free: 1.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.039e-05/0.4003, allocations: 353.3 kB / 471.6 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.4007, allocations: 232.5 kB / 471.9 MB, free: 0.625 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/0.4014, allocations: 0.8082 MB / 472.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.4029, allocations: 1.117 MB / 473.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.4029, allocations: 5.406 kB / 473.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002008/0.4049, allocations: 1.173 MB / 475 MB, free: 14.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.026e-05/0.405, allocations: 40.02 kB / 475 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/0.405, allocations: 18.22 kB / 475 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.4053, allocations: 67.3 kB / 475.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/0.406, allocations: 275 kB / 475.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.4084, allocations: 2.774 MB / 478.1 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.4096, allocations: 71.19 kB / 478.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4097, allocations: 59.25 kB / 478.3 MB, free: 11.47 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007796/0.4105, allocations: 361.2 kB / 478.6 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/0.4109, allocations: 142.5 kB / 478.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.4121, allocations: 0.5528 MB / 479.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.4121, allocations: 6.281 kB / 479.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.4121, allocations: 0 / 479.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.4121, allocations: 3.438 kB / 479.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.4157, allocations: 1.874 MB / 481.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4157, allocations: 3.312 kB / 481.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.4162, allocations: 106.6 kB / 481.3 MB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.4164, allocations: 40.3 kB / 481.3 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.636e-05/0.4165, allocations: 23.02 kB / 481.3 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/0.4188, allocations: 2.743 MB / 484.1 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/0.4188, allocations: 12.25 kB / 484.1 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.4204, allocations: 0.9176 MB / 485 MB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006702/0.4211, allocations: 265.4 kB / 485.3 MB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/0.4215, allocations: 20.11 kB / 485.3 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006498/0.4221, allocations: 39.27 kB / 485.3 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.4222, allocations: 52.97 kB / 485.4 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.4223, allocations: 21.83 kB / 485.4 MB, free: 6.043 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0013/0.4236, allocations: 0.8454 MB / 486.3 MB, free: 5.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4236, allocations: 0 / 486.3 MB, free: 5.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001347/0.4249, allocations: 308.2 kB / 486.6 MB, free: 5.539 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,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.001977/0.4269, allocations: 1.506 MB / 488.1 MB, free: 4.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.4287, allocations: 0.8909 MB / 489 MB, free: 3.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4287, allocations: 1.5 kB / 489 MB, free: 3.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.4294, allocations: 460 kB / 489.4 MB, free: 3.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.4311, allocations: 348.3 kB / 489.7 MB, free: 3.387 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/0.4469, allocations: 10.94 MB / 0.4889 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009361/0.4478, allocations: 1.175 MB / 0.4901 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006634/0.4485, allocations: 173.1 kB / 0.4903 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007125/0.4492, allocations: 0.5734 MB / 0.4908 GB, free: 10.12 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4492, allocations: 0 / 0.4908 GB, free: 10.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07333/0.5225, allocations: 28.01 MB / 0.5182 GB, free: 14.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.62, allocations: 15.23 kB / 0.5182 GB, free: 14.44 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 17.486709836870432]