Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001308/0.001308, 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.001155/0.001155, allocations: 156.9 kB / 23.94 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.9079/0.9079, 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.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.708e-05, allocations: 6.781 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009212/0.009239, allocations: 10.58 MB / 335.1 MB, free: 5.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.01412, allocations: 3.137 MB / 338.3 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000785/0.0149, allocations: 43.81 kB / 338.3 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.01607, allocations: 0.6477 MB / 338.9 MB, free: 1.387 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.01716, allocations: 0.814 MB / 339.8 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.0177, allocations: 411.4 kB / 340.2 MB, free: 164 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.01944, allocations: 2.512 MB / 342.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006965/0.02014, allocations: 0.6031 MB / 343.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.0218, allocations: 1.403 MB / 344.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005518/0.02235, allocations: 0.7127 MB / 345.4 MB, free: 10.87 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.02252, allocations: 232 kB / 345.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.02278, allocations: 267.9 kB / 345.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.02298, allocations: 470.2 kB / 346.3 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.02344, allocations: 0.7365 MB / 347.1 MB, free: 9.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.02511, allocations: 2.835 MB / 349.9 MB, free: 6.336 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.02511, allocations: 0 / 349.9 MB, free: 6.336 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.02511, allocations: 4 kB / 349.9 MB, free: 6.332 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.02513, allocations: 0 / 349.9 MB, free: 6.332 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002354/0.02748, allocations: 2.118 MB / 352 MB, free: 4.172 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.02752, allocations: 11.98 kB / 352 MB, free: 4.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.0277, allocations: 228.1 kB / 352.3 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004593/0.02816, allocations: 287.5 kB / 352.5 MB, free: 3.645 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.02936, allocations: 1.051 MB / 353.6 MB, free: 2.547 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.468e-05/0.02941, allocations: 119.4 kB / 353.7 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.02955, allocations: 160.3 kB / 353.9 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.03114, allocations: 1.612 MB / 355.5 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.03118, allocations: 15.92 kB / 355.5 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-05/0.03126, allocations: 60 kB / 355.6 MB, free: 0.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.03128, allocations: 40 kB / 355.6 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.03257, allocations: 1.037 MB / 356.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/0.03824, allocations: 5.643 MB / 362.3 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.03959, allocations: 0.5663 MB / 362.8 MB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008036/0.04039, allocations: 422.5 kB / 363.3 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.132e-05/0.04043, allocations: 16.59 kB / 363.3 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.04046, allocations: 51.08 kB / 363.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 2.605e-06/0.04047, allocations: 0 / 363.3 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.004229/0.04469, allocations: 2.17 MB / 365.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.04476, allocations: 111.5 kB / 365.6 MB, free: 6.078 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.04637, allocations: 1.333 MB / 366.9 MB, free: 4.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.926e-05/0.04641, allocations: 37.7 kB / 367 MB, free: 4.688 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005475/0.04696, allocations: 0.8672 MB / 367.8 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.04714, allocations: 273.6 kB / 368.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.04738, allocations: 202.8 kB / 368.3 MB, free: 3.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.0475, allocations: 357.8 kB / 368.6 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005181/0.04802, allocations: 278.5 kB / 368.9 MB, free: 2.711 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000785/0.0488, allocations: 0.7888 MB / 369.7 MB, free: 1.695 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.05016, allocations: 1.084 MB / 370.8 MB, free: 412 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.05017, allocations: 4 kB / 370.8 MB, free: 408 kB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001435/0.0516, allocations: 1.269 MB / 372.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.05163, allocations: 12 kB / 372.1 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.05164, allocations: 16 kB / 372.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000294/0.05193, allocations: 138.7 kB / 372.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004597/0.05239, allocations: 255.6 kB / 372.5 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.05486, allocations: 4.305 MB / 376.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/0.05527, allocations: 55.97 kB / 376.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.05532, allocations: 52 kB / 376.9 MB, free: 9.934 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.05566, allocations: 357.3 kB / 377.2 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.05577, allocations: 147 kB / 377.4 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.05679, allocations: 0.8258 MB / 378.2 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.05679, allocations: 11.98 kB / 378.2 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.05679, allocations: 4 kB / 378.2 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.0568, allocations: 7.922 kB / 378.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.05923, allocations: 2.122 MB / 380.4 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.05923, allocations: 8.062 kB / 380.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.05952, allocations: 131.7 kB / 380.5 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002336/0.05976, allocations: 126.5 kB / 380.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.05978, allocations: 28 kB / 380.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.06208, allocations: 4.447 MB / 385.1 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.06208, allocations: 11.88 kB / 385.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.06365, allocations: 1.289 MB / 386.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.06391, allocations: 215 kB / 386.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.292e-05/0.06401, allocations: 19.94 kB / 386.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.06431, allocations: 39.97 kB / 386.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.873e-05/0.0644, allocations: 64.33 kB / 386.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.06443, allocations: 27.94 kB / 386.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007643/0.06519, allocations: 0.8742 MB / 387.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.06519, allocations: 0 / 387.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006508/0.06584, allocations: 335.9 kB / 387.9 MB, free: 14.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00161/0.06745, allocations: 1.877 MB / 389.8 MB, free: 12.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.06853, allocations: 1.085 MB / 390.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.06853, allocations: 4 kB / 390.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005756/0.06911, allocations: 0.6881 MB / 391.6 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009388/0.07005, allocations: 379.6 kB / 392 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.08341, allocations: 11.63 MB / 403.6 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.08389, allocations: 0.6341 MB / 404.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004372/0.08433, allocations: 175.6 kB / 404.4 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005354/0.08486, allocations: 0.6097 MB / 405 MB, free: 12.34 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.08486, allocations: 0 / 405 MB, free: 12.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05208/0.1369, allocations: 33.72 MB / 438.7 MB, free: 10.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.853/8.99, allocations: 11.56 kB / 438.8 MB, free: 10.93 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 12.266229514963925]