Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008264/0.0008262, allocations: 96.72 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009953/0.0009953, allocations: 209.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 227.8 MB / 246.8 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002093/0.0002093, allocations: 11.94 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.08067, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.157/0.2377, allocations: 17.91 MB / 377.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007109/0.2448, allocations: 5.621 MB / 382.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.2459, allocations: 65.22 kB / 383 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.2482, allocations: 1.149 MB / 384.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.2502, allocations: 1.044 MB / 385.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009781/0.2512, allocations: 0.5872 MB / 385.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002758/0.254, allocations: 3.715 MB / 389.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.2555, allocations: 1.34 MB / 390.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.2569, allocations: 1.216 MB / 392 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/0.258, allocations: 1.366 MB / 393.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002646/0.2583, allocations: 174.2 kB / 393.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000498/0.2588, allocations: 211.1 kB / 393.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003317/0.2592, allocations: 0.5075 MB / 394.3 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.2602, allocations: 1.566 MB / 395.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002529/0.2628, allocations: 4.31 MB / 400.1 MB, free: 192 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2628, allocations: 0 / 400.1 MB, free: 192 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2628, allocations: 0 / 400.1 MB, free: 192 kB / 302.1 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.2628, allocations: 0 / 400.1 MB, free: 192 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.004102/0.2669, allocations: 2.803 MB / 402.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.267, allocations: 16.45 kB / 403 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003724/0.2673, allocations: 355.4 kB / 403.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.2687, allocations: 485 kB / 403.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00227/0.271, allocations: 1.7 MB / 405.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.2711, allocations: 197.8 kB / 405.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.2714, allocations: 271.3 kB / 405.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003562/0.275, allocations: 2.475 MB / 408.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-05/0.275, allocations: 8.281 kB / 408.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001884/0.2752, allocations: 108.8 kB / 408.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-05/0.2753, allocations: 64.34 kB / 408.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002805/0.2781, allocations: 1.665 MB / 410.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01109/0.2892, allocations: 10.7 MB / 421 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.2905, allocations: 1.065 MB / 422 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.2911, allocations: 368.5 kB / 422.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.2911, allocations: 12.64 kB / 422.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.2911, allocations: 43.22 kB / 422.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.014e-06/0.2911, allocations: 0 / 422.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.004566/0.2957, allocations: 2.968 MB / 425.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.2958, allocations: 175.1 kB / 425.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/0.2985, allocations: 2.206 MB / 427.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.428e-05/0.2986, allocations: 41.7 kB / 427.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009213/0.2995, allocations: 1.466 MB / 429.3 MB, free: 5.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.2997, allocations: 335.4 kB / 429.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.2999, allocations: 141.6 kB / 429.8 MB, free: 4.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.2999, allocations: 305.1 kB / 430 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/0.3006, allocations: 375.8 kB / 430.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.3018, allocations: 1.243 MB / 431.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.3038, allocations: 1.738 MB / 433.4 MB, free: 84 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.3038, allocations: 12 kB / 433.4 MB, free: 72 kB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00272/0.3065, allocations: 1.854 MB / 435.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005698/0.3071, allocations: 0.961 MB / 436.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.3071, allocations: 32 kB / 436.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004535/0.3076, allocations: 159.3 kB / 436.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.3087, allocations: 415.3 kB / 436.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/0.3122, allocations: 5.36 MB / 442.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.3136, allocations: 95.94 kB / 442.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.583e-05/0.3137, allocations: 96 kB / 442.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/0.3137, allocations: 7.938 kB / 442.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002315/0.316, allocations: 1.593 MB / 444 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-05/0.3161, allocations: 28 kB / 444 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003674/0.3165, allocations: 156.1 kB / 444.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.3175, allocations: 411.2 kB / 444.5 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/0.3209, allocations: 5.344 MB / 449.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.3222, allocations: 87.88 kB / 450 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.36e-05/0.3223, allocations: 92 kB / 450.1 MB, free: 13.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008849/0.3232, allocations: 0.5906 MB / 450.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.3234, allocations: 229.2 kB / 450.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.325, allocations: 0.9302 MB / 451.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.325, allocations: 12 kB / 451.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3251, allocations: 192 / 451.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3251, allocations: 7.922 kB / 451.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004419/0.3295, allocations: 3.148 MB / 455 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3295, allocations: 7.828 kB / 455 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005617/0.3301, allocations: 159.8 kB / 455.1 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000359/0.3304, allocations: 127.4 kB / 455.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.3305, allocations: 24 kB / 455.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/0.3339, allocations: 5.312 MB / 460.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.3339, allocations: 16.09 kB / 460.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.336, allocations: 1.518 MB / 462.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005963/0.3366, allocations: 382.2 kB / 462.5 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.3369, allocations: 27.94 kB / 462.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008419/0.3377, allocations: 63.95 kB / 462.6 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3379, allocations: 72.36 kB / 462.7 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.119e-05/0.3379, allocations: 35.98 kB / 462.7 MB, free: 388 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002028/0.3399, allocations: 1.458 MB / 464.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3399, allocations: 0 / 464.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002494/0.3424, allocations: 0.9414 MB / 465.1 MB, free: 13.97 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002475/0.3449, allocations: 2.114 MB / 467.2 MB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003542/0.3485, allocations: 2.709 MB / 469.9 MB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.3485, allocations: 4 kB / 469.9 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009683/0.3495, allocations: 0.8314 MB / 470.8 MB, free: 8.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/0.3536, allocations: 0.5717 MB / 471.3 MB, free: 7.508 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03181/0.3854, allocations: 22.88 MB / 494.2 MB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.3866, allocations: 1.563 MB / 495.8 MB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.3879, allocations: 323.2 kB / 496.1 MB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.389, allocations: 1.058 MB / 497.1 MB, free: 10.73 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.389, allocations: 0 / 497.1 MB, free: 10.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2147/0.6037, allocations: 46.93 MB / 0.5313 GB, free: 138.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.6039, allocations: 252.1 kB / 0.5316 GB, free: 137.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.663/3.267, allocations: 1.406 kB / 0.5316 GB, free: 137.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches