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.001183/0.001183, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001485, allocations: 55.22 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.09142, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1627/0.2541, allocations: 18.84 MB / 376.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007701/0.2618, allocations: 5.736 MB / 382.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001929/0.2638, allocations: 65.47 kB / 382.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.2674, allocations: 1.301 MB / 383.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.2708, allocations: 1.199 MB / 384.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.2722, allocations: 0.6694 MB / 385.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.2767, allocations: 3.92 MB / 389.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.2786, allocations: 1.59 MB / 390.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.2811, allocations: 1.44 MB / 392.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.2825, allocations: 1.591 MB / 393.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004624/0.283, allocations: 372.4 kB / 394.3 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007723/0.2838, allocations: 412.9 kB / 394.7 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003776/0.2842, allocations: 0.7311 MB / 395.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.2854, allocations: 1.769 MB / 397.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003474/0.2889, allocations: 4.548 MB / 401.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2889, allocations: 1.031 kB / 401.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2889, allocations: 0 / 401.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.432e-05/0.2889, allocations: 0 / 401.7 MB, free: 13.74 MB / 318.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.004815/0.2938, allocations: 3.332 MB / 405.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.2938, allocations: 10.97 kB / 405.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003361/0.2942, allocations: 358.9 kB / 405.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.2955, allocations: 478.8 kB / 405.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.2977, allocations: 1.705 MB / 407.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.2978, allocations: 195.8 kB / 407.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.2981, allocations: 269.7 kB / 408.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003274/0.3013, allocations: 2.47 MB / 410.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/0.3014, allocations: 7.906 kB / 410.5 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.3016, allocations: 108 kB / 410.7 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-05/0.3016, allocations: 64 kB / 410.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/0.3042, allocations: 1.654 MB / 412.4 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.3148, allocations: 10.66 MB / 423 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3159, allocations: 1.049 MB / 424.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005183/0.3165, allocations: 364.5 kB / 424.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.3165, allocations: 12.64 kB / 424.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.3165, allocations: 43.22 kB / 424.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.184e-06/0.3166, allocations: 0 / 424.5 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.004266/0.3208, allocations: 2.917 MB / 427.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/0.3209, allocations: 163.2 kB / 427.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.3234, allocations: 2.202 MB / 429.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.3234, allocations: 41.7 kB / 429.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008946/0.3243, allocations: 1.474 MB / 431.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.3245, allocations: 323.5 kB / 431.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003394/0.3249, allocations: 331.1 kB / 431.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.246e-05/0.325, allocations: 305.1 kB / 432.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005851/0.3256, allocations: 372.7 kB / 432.6 MB, free: 280 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.3267, allocations: 1.235 MB / 433.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.3285, allocations: 1.722 MB / 435.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-06/0.3285, allocations: 12 kB / 435.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002515/0.331, allocations: 1.835 MB / 437.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.3311, allocations: 20 kB / 437.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.3311, allocations: 36.08 kB / 437.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004271/0.3315, allocations: 155.3 kB / 437.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3326, allocations: 415.3 kB / 438 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00358/0.3362, allocations: 5.765 MB / 443.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.3374, allocations: 91.78 kB / 443.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/0.3375, allocations: 92 kB / 443.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00108/0.3385, allocations: 0.7303 MB / 444.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001056/0.3396, allocations: 1.231 MB / 445.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001761/0.3414, allocations: 1.703 MB / 447.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.436e-05/0.3414, allocations: 8 kB / 447.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002563/0.344, allocations: 1.815 MB / 449.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.344, allocations: 20 kB / 449.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.344, allocations: 28 kB / 449.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/0.3444, allocations: 159.5 kB / 449.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3454, allocations: 407.2 kB / 450 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.3489, allocations: 5.757 MB / 455.8 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.3501, allocations: 83.88 kB / 455.9 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.993e-05/0.3502, allocations: 96 kB / 456 MB, free: 6.027 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.0002358/0.3504, allocations: 327.3 kB / 456.3 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.3507, allocations: 229.2 kB / 456.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.3521, allocations: 0.9107 MB / 457.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3522, allocations: 8 kB / 457.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3522, allocations: 7.938 kB / 457.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.3522, allocations: 3.984 kB / 457.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004243/0.3564, allocations: 3.128 MB / 460.6 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.3565, allocations: 4.125 kB / 460.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.357, allocations: 163.7 kB / 460.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/0.3574, allocations: 123.4 kB / 460.9 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.766e-05/0.3574, allocations: 27.98 kB / 460.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003728/0.3611, allocations: 5.715 MB / 466.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.3612, allocations: 11.92 kB / 466.6 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3631, allocations: 1.491 MB / 468.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005453/0.3637, allocations: 386.2 kB / 468.5 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002571/0.3639, allocations: 23.94 kB / 468.5 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008232/0.3648, allocations: 55.95 kB / 468.6 MB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.3649, allocations: 80.28 kB / 468.6 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.32e-05/0.3649, allocations: 32 kB / 468.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.3669, allocations: 1.45 MB / 470.1 MB, free: 6.992 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3669, allocations: 0 / 470.1 MB, free: 6.992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002526/0.3694, allocations: 0.9414 MB / 471.1 MB, free: 6.051 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.002362/0.3718, allocations: 2.084 MB / 473.1 MB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.3754, allocations: 2.724 MB / 475.9 MB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3754, allocations: 4 kB / 475.9 MB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009054/0.3763, allocations: 0.82 MB / 476.7 MB, free: 168 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002346/0.3787, allocations: 0.6125 MB / 477.3 MB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02512/0.4038, allocations: 21.68 MB / 499 MB, free: 6.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4051, allocations: 1.567 MB / 0.4888 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001313/0.4064, allocations: 323.2 kB / 0.4891 GB, free: 5.051 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.4075, allocations: 1.054 MB / 0.4902 GB, free: 3.996 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4075, allocations: 0 / 0.4902 GB, free: 3.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5213/0.9288, allocations: 48.86 MB / 0.5379 GB, free: 149 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.61, allocations: 12.11 kB / 0.5379 GB, free: 149 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