Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001236/0.001236, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.0013/0.0013, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.354/1.354, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 47.92 kB / 378.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2958, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009925/0.3057, allocations: 8.167 MB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00455/0.3103, allocations: 2.688 MB / 442.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005088/0.3108, allocations: 31.81 kB / 442.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.3121, allocations: 0.5676 MB / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009776/0.3131, allocations: 0.4886 MB / 443.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.3136, allocations: 259.6 kB / 444.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.3151, allocations: 1.471 MB / 445.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006056/0.3157, allocations: 407.2 kB / 446 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007356/0.3164, allocations: 0.5759 MB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000703/0.3171, allocations: 0.595 MB / 447.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.3173, allocations: 136 kB / 447.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003027/0.3176, allocations: 180 kB / 447.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.3179, allocations: 290.9 kB / 447.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005914/0.3185, allocations: 0.6532 MB / 448.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.3203, allocations: 1.736 MB / 450.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3203, allocations: 0 / 450.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3203, allocations: 0 / 450.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.3203, allocations: 0 / 450.2 MB, free: 4.566 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002388/0.3227, allocations: 1.403 MB / 451.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3228, allocations: 8.031 kB / 451.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.465e-05/0.3228, allocations: 30.19 kB / 451.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001777/0.323, allocations: 156.3 kB / 451.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006295/0.3236, allocations: 192 kB / 451.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.3248, allocations: 0.6764 MB / 452.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.061e-05/0.3249, allocations: 70 kB / 452.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.325, allocations: 104 kB / 452.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.3266, allocations: 0.9385 MB / 453.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.3266, allocations: 0 / 453.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.81e-05/0.3267, allocations: 40 kB / 453.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.3267, allocations: 28 kB / 453.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.3279, allocations: 0.6362 MB / 454.4 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005049/0.3329, allocations: 3.786 MB / 458.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.3336, allocations: 343.4 kB / 458.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/0.3342, allocations: 245.3 kB / 458.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.3342, allocations: 12.31 kB / 458.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.3343, allocations: 42.83 kB / 458.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.784e-06/0.3343, allocations: 0 / 458.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002576/0.3368, allocations: 1.26 MB / 460.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.683e-05/0.3369, allocations: 85.05 kB / 460.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.338, allocations: 0.8254 MB / 461 MB, free: 9.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.338, allocations: 29.7 kB / 461 MB, free: 9.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004441/0.3385, allocations: 0.5774 MB / 461.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.3386, allocations: 166.6 kB / 461.8 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.3388, allocations: 130.6 kB / 461.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.339, allocations: 337.9 kB / 462.2 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.3393, allocations: 165.9 kB / 462.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005714/0.3399, allocations: 460 kB / 462.8 MB, free: 7.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009536/0.3409, allocations: 0.67 MB / 463.5 MB, free: 6.512 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.3409, allocations: 4 kB / 463.5 MB, free: 6.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001352/0.3422, allocations: 0.7631 MB / 464.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3422, allocations: 8.406 kB / 464.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.3423, allocations: 19.88 kB / 464.3 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.3425, allocations: 85.67 kB / 464.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.343, allocations: 147.8 kB / 464.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.3456, allocations: 2.935 MB / 467.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.3461, allocations: 36.03 kB / 467.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.3462, allocations: 36 kB / 467.5 MB, free: 2.238 MB / 366.1 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.0003718/0.3465, allocations: 257.5 kB / 467.8 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.3467, allocations: 91.44 kB / 467.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009265/0.3476, allocations: 495.5 kB / 468.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.3476, allocations: 7.984 kB / 468.4 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3476, allocations: 0 / 468.4 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3476, allocations: 0 / 468.4 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.3497, allocations: 1.412 MB / 469.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3497, allocations: 0 / 469.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.35, allocations: 71.91 kB / 469.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/0.3502, allocations: 78.02 kB / 469.9 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.3503, allocations: 12 kB / 469.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.3527, allocations: 2.916 MB / 472.9 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3527, allocations: 3.938 kB / 472.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.354, allocations: 0.7706 MB / 473.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.3542, allocations: 127.4 kB / 473.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.444e-05/0.3543, allocations: 12 kB / 473.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.3547, allocations: 27.97 kB / 473.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.3548, allocations: 40 kB / 473.8 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.3548, allocations: 20 kB / 473.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007663/0.3556, allocations: 0.5615 MB / 474.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3556, allocations: 0 / 474.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007747/0.3564, allocations: 204 kB / 474.6 MB, free: 10.79 MB / 382.1 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.001665/0.358, allocations: 1.344 MB / 476 MB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.3592, allocations: 0.6658 MB / 476.6 MB, free: 8.699 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3592, allocations: 0 / 476.6 MB, free: 8.699 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.3599, allocations: 434.7 kB / 477 MB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3609, allocations: 234.9 kB / 477.3 MB, free: 8.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.3714, allocations: 7.33 MB / 484.6 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007418/0.3722, allocations: 1.001 MB / 485.6 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003738/0.3725, allocations: 103.2 kB / 485.7 MB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.373, allocations: 371.3 kB / 486.1 MB, free: 14.77 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.373, allocations: 8 kB / 486.1 MB, free: 14.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06706/0.4401, allocations: 19.74 MB / 0.494 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.46, allocations: 4.062 kB / 0.494 GB, free: 11.3 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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: 18.326265601965133]