Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008467/0.0008467, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008772/0.0008772, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8645/0.8645, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.312e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006986/0.007009, allocations: 7.132 MB / 325.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003392/0.0104, allocations: 2.462 MB / 328 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005126/0.01091, allocations: 31.81 kB / 328.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.01201, allocations: 0.5284 MB / 328.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006964/0.01271, allocations: 0.5117 MB / 329.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.01306, allocations: 259.6 kB / 329.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.01425, allocations: 1.532 MB / 330.9 MB, free: 9.828 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005231/0.01477, allocations: 371.2 kB / 331.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008646/0.01564, allocations: 0.8535 MB / 332.1 MB, free: 8.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004206/0.01606, allocations: 442.6 kB / 332.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.0162, allocations: 140 kB / 332.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.01643, allocations: 179.9 kB / 332.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.01657, allocations: 278.9 kB / 333.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003198/0.01689, allocations: 462.9 kB / 333.6 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.01807, allocations: 1.729 MB / 335.3 MB, free: 5.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.01807, allocations: 4 kB / 335.3 MB, free: 5.379 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.01808, allocations: 3.938 kB / 335.3 MB, free: 5.375 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.54e-05/0.01812, allocations: 0 / 335.3 MB, free: 5.375 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001672/0.01979, allocations: 1.391 MB / 336.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.01984, allocations: 12.92 kB / 336.7 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.01998, allocations: 148.4 kB / 336.9 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003874/0.02036, allocations: 192 kB / 337 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000868/0.02123, allocations: 0.6688 MB / 337.7 MB, free: 2.906 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.02128, allocations: 74 kB / 337.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.02136, allocations: 107.9 kB / 337.9 MB, free: 2.727 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.02239, allocations: 1.031 MB / 338.9 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.02242, allocations: 3.938 kB / 338.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.091e-05/0.02247, allocations: 40 kB / 339 MB, free: 1.602 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.02248, allocations: 24 kB / 339 MB, free: 1.578 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/0.02327, allocations: 0.6286 MB / 339.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.02651, allocations: 3.517 MB / 343.1 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004431/0.02695, allocations: 346.5 kB / 343.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.0273, allocations: 244.9 kB / 343.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.02733, allocations: 8.328 kB / 343.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.02735, allocations: 38.89 kB / 343.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.264e-06/0.02735, allocations: 0 / 343.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001736/0.02909, allocations: 1.271 MB / 345 MB, free: 11.26 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.02913, allocations: 81.11 kB / 345.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007109/0.02984, allocations: 0.8486 MB / 346 MB, free: 10.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.02986, allocations: 29.7 kB / 346 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.03013, allocations: 0.5696 MB / 346.6 MB, free: 9.695 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.162e-05/0.03021, allocations: 166.6 kB / 346.7 MB, free: 9.531 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.03032, allocations: 126.6 kB / 346.8 MB, free: 9.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.597e-05/0.03041, allocations: 334 kB / 347.2 MB, free: 9.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.03061, allocations: 161.9 kB / 347.3 MB, free: 8.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.03094, allocations: 493.6 kB / 347.8 MB, free: 8.285 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005672/0.03151, allocations: 0.6585 MB / 348.5 MB, free: 7.492 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.03151, allocations: 4 kB / 348.5 MB, free: 7.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0008297/0.03234, allocations: 0.775 MB / 349.2 MB, free: 6.703 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.03236, allocations: 12.09 kB / 349.3 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.03237, allocations: 12 kB / 349.3 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.03255, allocations: 77.69 kB / 349.3 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.03281, allocations: 151.7 kB / 349.5 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.03437, allocations: 2.919 MB / 352.4 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.03464, allocations: 40.12 kB / 352.5 MB, free: 3.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.03467, allocations: 32 kB / 352.5 MB, free: 3.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002559/0.03493, allocations: 257.6 kB / 352.7 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.035, allocations: 91.38 kB / 352.8 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005521/0.03556, allocations: 491.5 kB / 353.3 MB, free: 2.383 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.03556, allocations: 7.938 kB / 353.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.03556, allocations: 7.984 kB / 353.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.03557, allocations: 0 / 353.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.03687, allocations: 1.311 MB / 354.6 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.03687, allocations: 0 / 354.6 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.03703, allocations: 67.91 kB / 354.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.03716, allocations: 73.89 kB / 354.8 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.03718, allocations: 12 kB / 354.8 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001393/0.03857, allocations: 2.911 MB / 357.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.03858, allocations: 4 kB / 357.7 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007815/0.03936, allocations: 0.7633 MB / 358.5 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.03953, allocations: 131.5 kB / 358.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.122e-05/0.03958, allocations: 8 kB / 358.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.03978, allocations: 31.86 kB / 358.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.03984, allocations: 31.94 kB / 358.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.03986, allocations: 16 kB / 358.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004864/0.04035, allocations: 0.5654 MB / 359.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04035, allocations: 0 / 359.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005267/0.04088, allocations: 200 kB / 359.4 MB, free: 11.89 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.001005/0.04188, allocations: 1.358 MB / 360.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007238/0.04261, allocations: 0.6577 MB / 361.5 MB, free: 9.801 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.04261, allocations: 0 / 361.5 MB, free: 9.801 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.04296, allocations: 435 kB / 361.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006492/0.04361, allocations: 226.3 kB / 362.1 MB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007382/0.05099, allocations: 7.261 MB / 369.4 MB, free: 1.426 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.05128, allocations: 414 kB / 369.8 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002893/0.05157, allocations: 111.2 kB / 369.9 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.05187, allocations: 376.4 kB / 370.2 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.05187, allocations: 0 / 370.2 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.0889, allocations: 20.96 MB / 391.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/7.662, allocations: 6.984 kB / 391.2 MB, free: 11.85 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.167017496190965]