Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001713/0.001713, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 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.001458/0.001458, allocations: 214.7 kB / 23.74 MB, free: 4.66 MB / 14.72 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 1.421/1.421, allocations: 230.5 MB / 257.4 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] 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.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 59.91 kB / 377.8 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2722, allocations: 53.41 MB / 431.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01028/0.2824, allocations: 8.175 MB / 439.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00517/0.2876, allocations: 2.684 MB / 442.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001068/0.2887, allocations: 27.88 kB / 442.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.2904, allocations: 0.5754 MB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001585/0.292, allocations: 0.4886 MB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006488/0.2927, allocations: 251.7 kB / 443.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002/0.2947, allocations: 1.471 MB / 444.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007491/0.2954, allocations: 407.2 kB / 445.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.2965, allocations: 0.5759 MB / 445.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008682/0.2973, allocations: 0.5988 MB / 446.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.2975, allocations: 140 kB / 446.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.2979, allocations: 180 kB / 446.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.2981, allocations: 279 kB / 447 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006853/0.2988, allocations: 0.657 MB / 447.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.301, allocations: 1.736 MB / 449.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.301, allocations: 3.938 kB / 449.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.301, allocations: 4 kB / 449.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.107e-05/0.3011, allocations: 4 kB / 449.4 MB, free: 4.324 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.002666/0.3037, allocations: 1.4 MB / 450.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3038, allocations: 8.031 kB / 450.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001865/0.304, allocations: 152.4 kB / 451 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006682/0.3046, allocations: 196 kB / 451.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.306, allocations: 0.6727 MB / 451.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/0.3061, allocations: 70 kB / 451.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3062, allocations: 107.9 kB / 452 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.3078, allocations: 0.9308 MB / 452.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.3079, allocations: 0 / 452.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8e-05/0.3079, allocations: 44 kB / 453 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.308, allocations: 24 kB / 453 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.3092, allocations: 0.6403 MB / 453.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005589/0.3148, allocations: 3.782 MB / 457.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.3155, allocations: 353.6 kB / 457.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005976/0.3161, allocations: 250 kB / 458 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.3161, allocations: 8.328 kB / 458 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.3162, allocations: 30.89 kB / 458.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.735e-06/0.3162, allocations: 0 / 458.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00282/0.319, allocations: 1.268 MB / 459.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.319, allocations: 85.11 kB / 459.4 MB, free: 9.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.3202, allocations: 0.8293 MB / 460.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.3202, allocations: 29.7 kB / 460.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/0.3207, allocations: 0.5735 MB / 460.8 MB, free: 8.488 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.3208, allocations: 170.6 kB / 461 MB, free: 8.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.321, allocations: 130.6 kB / 461.1 MB, free: 8.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3212, allocations: 330 kB / 461.5 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.3215, allocations: 169.9 kB / 461.6 MB, free: 7.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.3221, allocations: 456 kB / 462.1 MB, free: 7.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009567/0.323, allocations: 0.6622 MB / 462.7 MB, free: 6.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.323, allocations: 4 kB / 462.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001437/0.3245, allocations: 0.7749 MB / 463.5 MB, free: 5.527 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.3245, allocations: 8 kB / 463.5 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.3245, allocations: 12 kB / 463.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.3248, allocations: 81.62 kB / 463.6 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/0.3253, allocations: 155.9 kB / 463.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.328, allocations: 2.936 MB / 466.7 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006543/0.3286, allocations: 35.94 kB / 466.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.283e-05/0.3287, allocations: 32 kB / 466.8 MB, free: 2.039 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.0004696/0.3292, allocations: 265.6 kB / 467 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.3293, allocations: 91.38 kB / 467.1 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.3304, allocations: 487.1 kB / 467.6 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3304, allocations: 8 kB / 467.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3304, allocations: 0 / 467.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3304, allocations: 3.984 kB / 467.6 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.3328, allocations: 1.411 MB / 469 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.3328, allocations: 4 kB / 469 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.3331, allocations: 67.91 kB / 469.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.3334, allocations: 77.89 kB / 469.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.3334, allocations: 8 kB / 469.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.336, allocations: 2.919 MB / 472.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.336, allocations: 4.031 kB / 472.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.3374, allocations: 0.771 MB / 472.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.3377, allocations: 131.3 kB / 473 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.3379, allocations: 8 kB / 473 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.3383, allocations: 31.92 kB / 473 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.299e-05/0.3384, allocations: 31.94 kB / 473.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.3384, allocations: 19.98 kB / 473.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008866/0.3393, allocations: 0.5576 MB / 473.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3393, allocations: 0 / 473.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009487/0.3403, allocations: 204 kB / 473.8 MB, free: 10.59 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.001784/0.342, allocations: 1.346 MB / 475.2 MB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.3434, allocations: 0.6706 MB / 475.9 MB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3434, allocations: 0 / 475.9 MB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006689/0.344, allocations: 433.7 kB / 476.3 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.3452, allocations: 226.3 kB / 476.5 MB, free: 7.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.3574, allocations: 7.323 MB / 483.8 MB, free: 76 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000855/0.3583, allocations: 1.001 MB / 484.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004526/0.3587, allocations: 111.2 kB / 484.9 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005208/0.3592, allocations: 375.3 kB / 485.3 MB, free: 14.57 MB / 398.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3593, allocations: 0 / 485.3 MB, free: 14.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06636/0.4256, allocations: 19.71 MB / 0.4932 GB, free: 11.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.6, allocations: 7.719 kB / 0.4932 GB, free: 11.08 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.430437712930143]