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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001751/0.001751, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002194/0.002194, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2669, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008853/0.2758, allocations: 8.097 MB / 416.9 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004596/0.2805, allocations: 2.664 MB / 419.5 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.2816, allocations: 23.94 kB / 419.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.2833, allocations: 0.5793 MB / 420.1 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001694/0.285, allocations: 0.4886 MB / 420.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.2856, allocations: 255.7 kB / 420.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.2873, allocations: 1.467 MB / 422.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007704/0.2881, allocations: 0.5846 MB / 422.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007891/0.2889, allocations: 0.5642 MB / 423.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005808/0.2895, allocations: 0.5949 MB / 424.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.2897, allocations: 136 kB / 424.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003041/0.29, allocations: 176 kB / 424.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.2902, allocations: 279 kB / 424.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005587/0.2908, allocations: 0.6687 MB / 425.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.2927, allocations: 1.728 MB / 427.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.2927, allocations: 0 / 427.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2927, allocations: 0 / 427.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.995e-05/0.2927, allocations: 7.938 kB / 427.1 MB, free: 15.16 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.002433/0.2952, allocations: 1.479 MB / 428.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2952, allocations: 8.031 kB / 428.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.2954, allocations: 152.4 kB / 428.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006159/0.296, allocations: 196 kB / 428.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.2972, allocations: 0.7383 MB / 429.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/0.2973, allocations: 81.94 kB / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.2974, allocations: 99.95 kB / 429.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.2989, allocations: 0.9308 MB / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.55e-05/0.2989, allocations: 7.938 kB / 430.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.299, allocations: 40 kB / 430.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.2991, allocations: 27.94 kB / 430.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.3002, allocations: 0.6364 MB / 431.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004663/0.3049, allocations: 3.896 MB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006417/0.3055, allocations: 451.5 kB / 435.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.3061, allocations: 273.3 kB / 436.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.3062, allocations: 4.328 kB / 436.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.3062, allocations: 38.89 kB / 436.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.314e-06/0.3062, allocations: 0 / 436.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002577/0.3088, allocations: 1.422 MB / 437.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.3089, allocations: 85.11 kB / 437.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.3099, allocations: 0.8253 MB / 438.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.3099, allocations: 33.7 kB / 438.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003688/0.3103, allocations: 0.5735 MB / 439 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.3104, allocations: 162.6 kB / 439.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3106, allocations: 134.6 kB / 439.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3107, allocations: 334 kB / 439.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000313/0.3111, allocations: 165.9 kB / 439.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.3116, allocations: 460 kB / 440.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008317/0.3124, allocations: 0.6661 MB / 440.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3124, allocations: 0 / 440.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001244/0.3137, allocations: 0.775 MB / 441.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3137, allocations: 8 kB / 441.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3137, allocations: 12 kB / 441.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.314, allocations: 85.62 kB / 441.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004754/0.3145, allocations: 155.9 kB / 442 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002405/0.3169, allocations: 3.13 MB / 445.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.3175, allocations: 39.94 kB / 445.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.3176, allocations: 32 kB / 445.2 MB, free: 11.98 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.0003889/0.318, allocations: 259 kB / 445.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3181, allocations: 95.44 kB / 445.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000905/0.319, allocations: 0.4917 MB / 446 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.319, allocations: 4 kB / 446 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3191, allocations: 3.938 kB / 446 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3191, allocations: 0 / 446 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.321, allocations: 1.439 MB / 447.4 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.321, allocations: 0 / 447.4 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.3213, allocations: 67.91 kB / 447.5 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002062/0.3216, allocations: 77.83 kB / 447.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3216, allocations: 12 kB / 447.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.3238, allocations: 3.128 MB / 450.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3238, allocations: 64 / 450.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.325, allocations: 0.7781 MB / 451.5 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.3253, allocations: 208.4 kB / 451.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3254, allocations: 16 kB / 451.7 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/0.3259, allocations: 23.98 kB / 451.7 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.3259, allocations: 31.95 kB / 451.8 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.326, allocations: 12 kB / 451.8 MB, free: 4.895 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007274/0.3267, allocations: 0.5654 MB / 452.4 MB, free: 4.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3267, allocations: 0 / 452.4 MB, free: 4.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000817/0.3275, allocations: 208 kB / 452.6 MB, free: 4.129 MB / 366.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.001558/0.3291, allocations: 1.347 MB / 453.9 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.3303, allocations: 0.6824 MB / 454.6 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3303, allocations: 4 kB / 454.6 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005971/0.3309, allocations: 449.8 kB / 455 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.332, allocations: 224.9 kB / 455.2 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.3422, allocations: 7.315 MB / 462.6 MB, free: 9.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.3428, allocations: 1.001 MB / 463.6 MB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.3432, allocations: 111.2 kB / 463.7 MB, free: 8.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004089/0.3436, allocations: 379.2 kB / 464 MB, free: 8.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3436, allocations: 0 / 464 MB, free: 8.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06092/0.4046, allocations: 19.07 MB / 483.1 MB, free: 5.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.33, allocations: 18.2 kB / 483.1 MB, free: 5.258 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches