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.001663/0.001663, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002064/0.002064, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.536/1.536, allocations: 230.5 MB / 258.2 MB, free: 7.773 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 63.89 kB / 378.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.274, allocations: 53.41 MB / 431.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009397/0.2834, allocations: 7.14 MB / 439.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004997/0.2884, allocations: 2.49 MB / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008014/0.2892, allocations: 27.88 kB / 441.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.2907, allocations: 0.5192 MB / 442.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.2919, allocations: 496.4 kB / 442.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005025/0.2924, allocations: 251.7 kB / 442.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001542/0.2939, allocations: 1.49 MB / 444.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.2945, allocations: 399.2 kB / 444.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008011/0.2953, allocations: 0.5759 MB / 445.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.2961, allocations: 0.595 MB / 445.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.2962, allocations: 140 kB / 446 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003284/0.2966, allocations: 180 kB / 446.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.2968, allocations: 275 kB / 446.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.2973, allocations: 0.5366 MB / 447 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001902/0.2992, allocations: 1.743 MB / 448.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2992, allocations: 4 kB / 448.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2992, allocations: 3.938 kB / 448.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.2993, allocations: 0 / 448.8 MB, free: 5.508 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.002393/0.3017, allocations: 1.403 MB / 450.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3017, allocations: 12.03 kB / 450.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.646e-05/0.3017, allocations: 26.19 kB / 450.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.3019, allocations: 148.4 kB / 450.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006563/0.3026, allocations: 192 kB / 450.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.3039, allocations: 0.6725 MB / 451.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.495e-05/0.3039, allocations: 74 kB / 451.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.3041, allocations: 103.9 kB / 451.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.3058, allocations: 1.031 MB / 452.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.3058, allocations: 11.91 kB / 452.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.3059, allocations: 44 kB / 452.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.3059, allocations: 24 kB / 452.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.3071, allocations: 0.6324 MB / 453.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005067/0.3122, allocations: 3.506 MB / 456.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006625/0.3129, allocations: 343 kB / 457 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005804/0.3134, allocations: 250 kB / 457.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.3135, allocations: 8.328 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.3135, allocations: 38.89 kB / 457.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.274e-06/0.3135, allocations: 0 / 457.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.0027/0.3162, allocations: 1.268 MB / 458.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.3163, allocations: 81.11 kB / 458.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.3174, allocations: 0.8215 MB / 459.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.3174, allocations: 29.7 kB / 459.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000439/0.3179, allocations: 0.5735 MB / 460 MB, free: 9.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.318, allocations: 166.6 kB / 460.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.3182, allocations: 126.6 kB / 460.3 MB, free: 9.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3183, allocations: 337.9 kB / 460.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.3187, allocations: 173.9 kB / 460.8 MB, free: 9.004 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005757/0.3193, allocations: 485.7 kB / 461.3 MB, free: 8.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009469/0.3202, allocations: 0.6583 MB / 461.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3202, allocations: 4 kB / 461.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001353/0.3216, allocations: 0.7711 MB / 462.7 MB, free: 6.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.3216, allocations: 16.12 kB / 462.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.3216, allocations: 11.94 kB / 462.7 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002804/0.3219, allocations: 85.64 kB / 462.8 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004915/0.3224, allocations: 151.8 kB / 463 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.3249, allocations: 2.912 MB / 465.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006482/0.3256, allocations: 40.12 kB / 465.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.3256, allocations: 36 kB / 466 MB, free: 3.332 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.0004623/0.3261, allocations: 261.5 kB / 466.2 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.3262, allocations: 91.44 kB / 466.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009605/0.3272, allocations: 491.1 kB / 466.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3272, allocations: 8 kB / 466.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.3272, allocations: 0 / 466.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3272, allocations: 3.984 kB / 466.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.3294, allocations: 1.318 MB / 468.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3294, allocations: 0 / 468.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.3297, allocations: 71.91 kB / 468.2 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.3299, allocations: 73.89 kB / 468.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.33, allocations: 12 kB / 468.3 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002479/0.3324, allocations: 2.896 MB / 471.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3324, allocations: 7.969 kB / 471.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.3338, allocations: 0.771 MB / 471.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.3341, allocations: 135.4 kB / 472.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3342, allocations: 12 kB / 472.1 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.3346, allocations: 31.91 kB / 472.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.3347, allocations: 39.88 kB / 472.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3347, allocations: 8 kB / 472.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008294/0.3355, allocations: 0.5654 MB / 472.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3355, allocations: 4 kB / 472.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008851/0.3364, allocations: 200 kB / 472.9 MB, free: 11.98 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.001733/0.3381, allocations: 1.338 MB / 474.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.3394, allocations: 0.6692 MB / 474.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3394, allocations: 0 / 474.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007016/0.3401, allocations: 439.2 kB / 475.4 MB, free: 9.445 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.3412, allocations: 224.5 kB / 475.6 MB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.3524, allocations: 7.324 MB / 482.9 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000508/0.3529, allocations: 417.9 kB / 483.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004925/0.3534, allocations: 103.2 kB / 483.4 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004967/0.3539, allocations: 371.3 kB / 483.8 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3539, allocations: 0 / 483.8 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07215/0.426, allocations: 20.66 MB / 0.4926 GB, free: 12.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.7, allocations: 10.03 kB / 0.4926 GB, free: 12.23 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: 18.880856093019247]