Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001265/0.001265, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001356/0.001356, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 54.58 kB / 347.2 MB, free: 9.965 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2321, allocations: 49.15 MB / 396.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007488/0.2396, allocations: 7.098 MB / 403.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004155/0.2438, allocations: 2.486 MB / 405.9 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009869/0.2447, allocations: 28.69 kB / 406 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2462, allocations: 0.5328 MB / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001222/0.2474, allocations: 497 kB / 407 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.2479, allocations: 257.9 kB / 407.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.2493, allocations: 1.469 MB / 408.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005425/0.2499, allocations: 369.1 kB / 409.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006309/0.2505, allocations: 0.5726 MB / 409.6 MB, free: 320 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005512/0.251, allocations: 0.5196 MB / 410.2 MB, free: 68 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.2512, allocations: 137.7 kB / 410.3 MB, free: 68 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.2515, allocations: 175.4 kB / 410.5 MB, free: 60 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.2518, allocations: 277.2 kB / 410.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005676/0.2523, allocations: 0.5385 MB / 411.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.2543, allocations: 1.747 MB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2543, allocations: 0.9688 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2543, allocations: 3.938 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2e-05/0.2543, allocations: 0 / 413 MB, free: 14.41 MB / 334.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.002541/0.2569, allocations: 1.417 MB / 414.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2569, allocations: 13.11 kB / 414.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.2571, allocations: 152.6 kB / 414.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006316/0.2578, allocations: 190.9 kB / 414.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.2591, allocations: 0.6736 MB / 415.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.161e-05/0.2592, allocations: 72.19 kB / 415.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.2593, allocations: 101.5 kB / 415.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.2609, allocations: 1.032 MB / 416.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/0.261, allocations: 9.359 kB / 416.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.2611, allocations: 37.78 kB / 416.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.2611, allocations: 27.34 kB / 416.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.2623, allocations: 0.6329 MB / 417.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005164/0.2674, allocations: 3.49 MB / 420.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.2681, allocations: 335.8 kB / 421.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005741/0.2687, allocations: 248.6 kB / 421.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.2687, allocations: 4.203 kB / 421.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.2688, allocations: 41.48 kB / 421.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.394e-06/0.2688, allocations: 1.281 kB / 421.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.002811/0.2716, allocations: 1.264 MB / 422.7 MB, free: 7.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.2716, allocations: 82.77 kB / 422.8 MB, free: 7.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.2728, allocations: 0.8455 MB / 423.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.2729, allocations: 31.14 kB / 423.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005006/0.2734, allocations: 0.5683 MB / 424.3 MB, free: 6.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.2735, allocations: 162.7 kB / 424.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.2737, allocations: 137.5 kB / 424.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2739, allocations: 332.9 kB / 424.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003396/0.2742, allocations: 167.6 kB / 425.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006303/0.2748, allocations: 493.1 kB / 425.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009883/0.2758, allocations: 0.6563 MB / 426.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.2758, allocations: 0 / 426.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001453/0.2773, allocations: 0.7751 MB / 427 MB, free: 3.734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.2773, allocations: 8 kB / 427 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.2773, allocations: 8 kB / 427 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002732/0.2776, allocations: 89.88 kB / 427.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.2781, allocations: 155.7 kB / 427.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.2807, allocations: 2.912 MB / 430.1 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006264/0.2814, allocations: 35.98 kB / 430.2 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.2814, allocations: 36 kB / 430.2 MB, free: 272 kB / 334.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.0004071/0.2818, allocations: 257.8 kB / 430.5 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.282, allocations: 99.58 kB / 430.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009656/0.2829, allocations: 0.4915 MB / 431 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.2829, allocations: 4 kB / 431 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.2829, allocations: 0 / 431 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2829, allocations: 4.109 kB / 431.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.2851, allocations: 1.31 MB / 432.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2851, allocations: 4 kB / 432.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.2854, allocations: 72.12 kB / 432.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.2856, allocations: 69.67 kB / 432.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.2857, allocations: 12 kB / 432.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002543/0.2882, allocations: 2.904 MB / 435.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2882, allocations: 4 kB / 435.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.2895, allocations: 0.779 MB / 436.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.2898, allocations: 123.4 kB / 436.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.2899, allocations: 15.98 kB / 436.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.2903, allocations: 23.98 kB / 436.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.2904, allocations: 47.62 kB / 436.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.2904, allocations: 12 kB / 436.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007834/0.2912, allocations: 0.5654 MB / 437 MB, free: 9.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2912, allocations: 3.938 kB / 437 MB, free: 9.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008088/0.292, allocations: 203.9 kB / 437.2 MB, free: 8.902 MB / 350.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.001667/0.2936, allocations: 1.334 MB / 438.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.2948, allocations: 0.6672 MB / 439.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2948, allocations: 0 / 439.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006679/0.2955, allocations: 437 kB / 439.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.2965, allocations: 223.7 kB / 439.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.3071, allocations: 7.338 MB / 447.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.3076, allocations: 417.9 kB / 447.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003596/0.3079, allocations: 99.27 kB / 447.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000478/0.3084, allocations: 367.3 kB / 448 MB, free: 13.47 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3084, allocations: 4 kB / 448 MB, free: 13.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06029/0.3687, allocations: 20.89 MB / 468.9 MB, free: 8.488 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.06, allocations: 11.94 kB / 468.9 MB, free: 8.477 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.657742904964834]