Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 55.91 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 53.35 MB / 431.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009509/0.2623, allocations: 7.064 MB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004627/0.2669, allocations: 2.447 MB / 441.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009681/0.2679, allocations: 27.88 kB / 441.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.2696, allocations: 0.5092 MB / 441.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001695/0.2713, allocations: 496.3 kB / 442.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.272, allocations: 239.7 kB / 442.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002025/0.274, allocations: 1.439 MB / 444.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000697/0.2747, allocations: 407.3 kB / 444.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008795/0.2756, allocations: 0.5681 MB / 445 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008203/0.2764, allocations: 0.5794 MB / 445.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.2766, allocations: 136 kB / 445.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00039/0.277, allocations: 172 kB / 445.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.2772, allocations: 279 kB / 446.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005669/0.2778, allocations: 0.521 MB / 446.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.2798, allocations: 1.716 MB / 448.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2798, allocations: 0 / 448.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2798, allocations: 0 / 448.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.2798, allocations: 4 kB / 448.4 MB, free: 5.977 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002415/0.2823, allocations: 1.392 MB / 449.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.2823, allocations: 8.031 kB / 449.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.903e-05/0.2824, allocations: 26.19 kB / 449.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001725/0.2825, allocations: 152.3 kB / 450 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000578/0.2831, allocations: 184 kB / 450.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.2843, allocations: 0.6569 MB / 450.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.228e-05/0.2844, allocations: 70 kB / 450.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.2845, allocations: 99.95 kB / 451 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.2862, allocations: 0.9982 MB / 452 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.2862, allocations: 4 kB / 452 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.712e-05/0.2863, allocations: 43.94 kB / 452.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.2863, allocations: 24 kB / 452.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2875, allocations: 0.6168 MB / 452.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004901/0.2924, allocations: 3.503 MB / 456.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.293, allocations: 254.6 kB / 456.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.2932, allocations: 132.8 kB / 456.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.2933, allocations: 7.984 kB / 456.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.2933, allocations: 42.5 kB / 456.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.214e-06/0.2933, allocations: 3.938 kB / 456.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002207/0.2955, allocations: 1.044 MB / 457.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.2956, allocations: 81.11 kB / 457.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.2967, allocations: 0.8214 MB / 458.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.2967, allocations: 33.7 kB / 458.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004829/0.2972, allocations: 0.5851 MB / 459.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.2973, allocations: 138.9 kB / 459.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.2975, allocations: 126.6 kB / 459.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2976, allocations: 337.9 kB / 459.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.2979, allocations: 145.9 kB / 459.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005755/0.2985, allocations: 489.6 kB / 460.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008932/0.2994, allocations: 0.6396 MB / 461 MB, free: 8.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.2994, allocations: 4 kB / 461 MB, free: 8.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001196/0.3006, allocations: 0.6884 MB / 461.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.3006, allocations: 12 kB / 461.7 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.3007, allocations: 16.73 kB / 461.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.3008, allocations: 36.86 kB / 461.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.3013, allocations: 159.7 kB / 462 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.3025, allocations: 1.287 MB / 463.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/0.303, allocations: 32.12 kB / 463.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.303, allocations: 43.98 kB / 463.3 MB, free: 6.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00038/0.3034, allocations: 257.8 kB / 463.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.3035, allocations: 91.38 kB / 463.7 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007471/0.3043, allocations: 374.4 kB / 464 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3043, allocations: 0 / 464 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.3043, allocations: 4 kB / 464 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3043, allocations: 7.984 kB / 464 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.3061, allocations: 1.148 MB / 465.2 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3061, allocations: 4 kB / 465.2 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3065, allocations: 72.11 kB / 465.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.3066, allocations: 28.84 kB / 465.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.3066, allocations: 11.94 kB / 465.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.3076, allocations: 1.271 MB / 466.6 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.3076, allocations: 7.969 kB / 466.6 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3086, allocations: 0.6208 MB / 467.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.3089, allocations: 119.4 kB / 467.3 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.3e-05/0.309, allocations: 11.94 kB / 467.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.3093, allocations: 27.97 kB / 467.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.3094, allocations: 23.95 kB / 467.4 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.3094, allocations: 20 kB / 467.4 MB, free: 1.879 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008017/0.3102, allocations: 0.5576 MB / 467.9 MB, free: 1.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3102, allocations: 0 / 467.9 MB, free: 1.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007258/0.311, allocations: 192 kB / 468.1 MB, free: 1.141 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001461/0.3124, allocations: 1.204 MB / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.3134, allocations: 0.4909 MB / 469.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3134, allocations: 5.938 kB / 469.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000425/0.3139, allocations: 250.9 kB / 470.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.3149, allocations: 214.8 kB / 470.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.3257, allocations: 7.123 MB / 477.4 MB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.3262, allocations: 408.8 kB / 477.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004269/0.3266, allocations: 110.9 kB / 477.9 MB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.3271, allocations: 359.3 kB / 478.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3271, allocations: 0 / 478.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05311/0.3802, allocations: 19.31 MB / 497.6 MB, free: 3.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.16, allocations: 6.297 kB / 497.6 MB, free: 3.523 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.91438306903001]