Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001354/0.001354, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, 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.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2596, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00842/0.2681, allocations: 7.147 MB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003888/0.272, allocations: 2.383 MB / 418.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000798/0.2729, allocations: 16 kB / 418.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.2744, allocations: 0.5126 MB / 418.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0012/0.2756, allocations: 413 kB / 419.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.2762, allocations: 211.7 kB / 419.4 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.2777, allocations: 1.191 MB / 420.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007859/0.2785, allocations: 0.5154 MB / 421.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000835/0.2794, allocations: 466.1 kB / 421.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006879/0.2801, allocations: 0.4939 MB / 422.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.2803, allocations: 112 kB / 422.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003982/0.2807, allocations: 156 kB / 422.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.2809, allocations: 223.2 kB / 422.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007021/0.2816, allocations: 0.5521 MB / 423.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.2833, allocations: 1.436 MB / 424.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2833, allocations: 7.922 kB / 424.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2833, allocations: 0 / 424.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.901e-05/0.2834, allocations: 0 / 424.6 MB, free: 1.656 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002371/0.2857, allocations: 1.277 MB / 425.8 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2858, allocations: 8.031 kB / 425.8 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001746/0.286, allocations: 127.1 kB / 426 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005195/0.2865, allocations: 144.2 kB / 426.1 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2876, allocations: 0.6499 MB / 426.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.2877, allocations: 62.38 kB / 426.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.2878, allocations: 92 kB / 426.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2891, allocations: 0.7755 MB / 427.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.2892, allocations: 7.984 kB / 427.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-05/0.2892, allocations: 32 kB / 427.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.2892, allocations: 16 kB / 427.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2903, allocations: 0.5231 MB / 428.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004239/0.2945, allocations: 3.377 MB / 431.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.295, allocations: 222.5 kB / 431.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.2953, allocations: 116.8 kB / 432 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.2954, allocations: 8 kB / 432 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.2955, allocations: 38.55 kB / 432 MB, free: 9.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.855e-06/0.2955, allocations: 0 / 432 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002225/0.2977, allocations: 1.059 MB / 433.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.2978, allocations: 85.33 kB / 433.2 MB, free: 8.602 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.2988, allocations: 0.735 MB / 433.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.2988, allocations: 29.7 kB / 433.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.2992, allocations: 0.5034 MB / 434.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.2993, allocations: 115.1 kB / 434.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.2994, allocations: 110.2 kB / 434.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2996, allocations: 378.8 kB / 435 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.2999, allocations: 125.2 kB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004375/0.3003, allocations: 422.1 kB / 435.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007578/0.3011, allocations: 0.5715 MB / 436.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3011, allocations: 0 / 436.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001149/0.3023, allocations: 0.6228 MB / 436.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3023, allocations: 8 kB / 436.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.3023, allocations: 12 kB / 436.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.3025, allocations: 37.39 kB / 436.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/0.303, allocations: 143.7 kB / 436.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.3041, allocations: 1.39 MB / 438.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/0.3046, allocations: 39.88 kB / 438.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.144e-05/0.3047, allocations: 28 kB / 438.4 MB, free: 2.906 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003627/0.305, allocations: 245.6 kB / 438.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.3052, allocations: 71.53 kB / 438.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000682/0.3059, allocations: 321.4 kB / 439 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.3059, allocations: 0 / 439 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3059, allocations: 4 kB / 439 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3059, allocations: 7.922 kB / 439 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.3077, allocations: 1.095 MB / 440.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3077, allocations: 4.219 kB / 440.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.308, allocations: 59.91 kB / 440.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-05/0.3081, allocations: 24.84 kB / 440.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.3081, allocations: 8 kB / 440.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000957/0.3091, allocations: 1.378 MB / 441.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3091, allocations: 0 / 441.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009582/0.31, allocations: 0.5527 MB / 442.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.3104, allocations: 176.6 kB / 442.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.3105, allocations: 15.92 kB / 442.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.3109, allocations: 15.98 kB / 442.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.025e-05/0.311, allocations: 27.91 kB / 442.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.311, allocations: 12 kB / 442.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008387/0.3118, allocations: 0.503 MB / 442.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3119, allocations: 0 / 442.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009204/0.3128, allocations: 156 kB / 443.1 MB, free: 13.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001547/0.3143, allocations: 1.129 MB / 444.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009415/0.3153, allocations: 468.5 kB / 444.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3153, allocations: 0 / 444.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.3157, allocations: 239.1 kB / 444.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.3167, allocations: 186.3 kB / 445.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008941/0.3257, allocations: 6.282 MB / 451.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005201/0.3262, allocations: 0.9449 MB / 452.3 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003256/0.3266, allocations: 90.02 kB / 452.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003436/0.3269, allocations: 295.3 kB / 452.7 MB, free: 3.828 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3269, allocations: 4 kB / 452.7 MB, free: 3.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04143/0.3684, allocations: 15.44 MB / 468.1 MB, free: 4.617 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.94, allocations: 4.062 kB / 468.1 MB, free: 4.613 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches