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.001295/0.001295, allocations: 112.4 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001438/0.001438, allocations: 190.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001708/0.001708, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.278, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.0102/0.2882, allocations: 8.158 MB / 430.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005021/0.2932, allocations: 2.638 MB / 433.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.2944, allocations: 27.88 kB / 433.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.2964, allocations: 0.5793 MB / 434 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001733/0.2981, allocations: 0.4886 MB / 434.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008148/0.2989, allocations: 251.6 kB / 434.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002343/0.3012, allocations: 1.475 MB / 436.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008709/0.3021, allocations: 399.2 kB / 436.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.3032, allocations: 0.5759 MB / 437.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3042, allocations: 0.595 MB / 437.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003145/0.3046, allocations: 136 kB / 437.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005506/0.3051, allocations: 184 kB / 438.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003068/0.3054, allocations: 279 kB / 438.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000966/0.3064, allocations: 0.6571 MB / 439.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002278/0.3087, allocations: 1.736 MB / 440.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3087, allocations: 0 / 440.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3087, allocations: 0 / 440.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.327e-05/0.3087, allocations: 4 kB / 440.8 MB, free: 12.34 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.002575/0.3113, allocations: 1.415 MB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3113, allocations: 8.031 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001893/0.3115, allocations: 148.4 kB / 442.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000683/0.3122, allocations: 196 kB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.3134, allocations: 0.6727 MB / 443.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.3135, allocations: 74 kB / 443.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3136, allocations: 96 kB / 443.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.3152, allocations: 0.9308 MB / 444.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.3153, allocations: 7.938 kB / 444.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.886e-05/0.3153, allocations: 40 kB / 444.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.3154, allocations: 24 kB / 444.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.3166, allocations: 0.6364 MB / 445 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005566/0.3222, allocations: 3.782 MB / 448.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006782/0.3228, allocations: 354.5 kB / 449.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006006/0.3234, allocations: 249.3 kB / 449.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.3235, allocations: 4.328 kB / 449.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.3235, allocations: 46.81 kB / 449.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.224e-06/0.3235, allocations: 0 / 449.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002731/0.3262, allocations: 1.263 MB / 450.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.3263, allocations: 89.09 kB / 450.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.3275, allocations: 0.8254 MB / 451.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.3275, allocations: 33.7 kB / 451.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004822/0.328, allocations: 0.5696 MB / 452.2 MB, free: 496 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.3282, allocations: 166.6 kB / 452.4 MB, free: 328 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/0.3284, allocations: 126.6 kB / 452.5 MB, free: 196 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3285, allocations: 334 kB / 452.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.3289, allocations: 169.9 kB / 453 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.3295, allocations: 460 kB / 453.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.3305, allocations: 0.6624 MB / 454.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.3305, allocations: 4 kB / 454.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001506/0.332, allocations: 0.7711 MB / 454.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.3321, allocations: 8 kB / 454.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/0.3321, allocations: 12 kB / 454.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.3324, allocations: 85.61 kB / 455 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.3329, allocations: 151.9 kB / 455.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.3357, allocations: 2.932 MB / 458.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.3362, allocations: 39.94 kB / 458.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.359e-05/0.3363, allocations: 32 kB / 458.1 MB, free: 10.04 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.0004187/0.3367, allocations: 261.6 kB / 458.4 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.3369, allocations: 91.44 kB / 458.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000997/0.3379, allocations: 495.4 kB / 459 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3379, allocations: 8 kB / 459 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3379, allocations: 3.984 kB / 459 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3379, allocations: 0 / 459 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.3404, allocations: 1.411 MB / 460.4 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3404, allocations: 3.938 kB / 460.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.3407, allocations: 67.91 kB / 460.5 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.3409, allocations: 73.89 kB / 460.5 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.341, allocations: 12 kB / 460.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002573/0.3435, allocations: 2.919 MB / 463.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3436, allocations: 0 / 463.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.3449, allocations: 0.7715 MB / 464.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.3452, allocations: 123.4 kB / 464.4 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.3453, allocations: 16 kB / 464.4 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.3458, allocations: 27.97 kB / 464.4 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.804e-05/0.3458, allocations: 35.88 kB / 464.4 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.3459, allocations: 16 kB / 464.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008997/0.3468, allocations: 0.5654 MB / 465 MB, free: 2.777 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3468, allocations: 0 / 465 MB, free: 2.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009153/0.3477, allocations: 200 kB / 465.2 MB, free: 2.582 MB / 366.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.001829/0.3495, allocations: 1.35 MB / 466.6 MB, free: 1.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.3508, allocations: 0.6627 MB / 467.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.3508, allocations: 0 / 467.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006591/0.3515, allocations: 429.7 kB / 467.7 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3526, allocations: 230.1 kB / 467.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.3647, allocations: 7.331 MB / 475.2 MB, free: 8.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008007/0.3655, allocations: 1.008 MB / 476.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004091/0.3659, allocations: 103.2 kB / 476.3 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/0.3664, allocations: 375.3 kB / 476.7 MB, free: 6.547 MB / 382.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3664, allocations: 0 / 476.7 MB, free: 6.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0665/0.4329, allocations: 19.7 MB / 496.4 MB, free: 3.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.42, allocations: 10.86 kB / 496.4 MB, free: 3.102 MB / 398.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.22544559999369]