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.001134/0.001134, allocations: 103.7 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.001289/0.001289, allocations: 208.6 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.324/1.324, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.36 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08494, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008904/0.09387, allocations: 8.091 MB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003831/0.09773, allocations: 2.669 MB / 368.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000439/0.09819, allocations: 27.94 kB / 368.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.09944, allocations: 0.5559 MB / 368.9 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008563/0.1003, allocations: 460.3 kB / 369.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.1007, allocations: 255.7 kB / 369.6 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00123/0.102, allocations: 1.475 MB / 371.1 MB, free: 436 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1439/0.2459, allocations: 0.5666 MB / 371.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.247, allocations: 0.5506 MB / 372.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006051/0.2476, allocations: 0.5997 MB / 372.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.2478, allocations: 137.7 kB / 373 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.2482, allocations: 175.5 kB / 373.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.2484, allocations: 277.4 kB / 373.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.2489, allocations: 0.6627 MB / 374.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.2505, allocations: 1.704 MB / 375.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2505, allocations: 2.906 kB / 375.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2505, allocations: 0 / 375.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.431e-05/0.2505, allocations: 0 / 375.8 MB, free: 10.18 MB / 302.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.002167/0.2527, allocations: 1.45 MB / 377.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2528, allocations: 14.2 kB / 377.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.2529, allocations: 150.8 kB / 377.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006346/0.2536, allocations: 185.9 kB / 377.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009458/0.2545, allocations: 0.7316 MB / 378.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/0.2546, allocations: 73.03 kB / 378.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.2547, allocations: 97.62 kB / 378.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.2561, allocations: 0.9334 MB / 379.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.2562, allocations: 10.03 kB / 379.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-05/0.2563, allocations: 42.19 kB / 379.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.2563, allocations: 24.94 kB / 379.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.2575, allocations: 0.6341 MB / 380.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004177/0.2616, allocations: 3.922 MB / 384 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000604/0.2623, allocations: 438 kB / 384.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.2628, allocations: 265 kB / 384.7 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.2629, allocations: 8.172 kB / 384.7 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.2629, allocations: 40.61 kB / 384.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.783e-06/0.2629, allocations: 3.938 kB / 384.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002326/0.2652, allocations: 1.391 MB / 386.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.2653, allocations: 83.19 kB / 386.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009415/0.2662, allocations: 0.8226 MB / 387.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2662, allocations: 32.45 kB / 387.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.2665, allocations: 0.5643 MB / 387.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.32e-05/0.2666, allocations: 150.2 kB / 387.8 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.2667, allocations: 134.5 kB / 387.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.108e-05/0.2668, allocations: 335 kB / 388.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.2671, allocations: 167.3 kB / 388.4 MB, free: 3.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/0.2676, allocations: 461.1 kB / 388.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/0.2683, allocations: 0.663 MB / 389.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.2683, allocations: 2.719 kB / 389.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001165/0.2695, allocations: 0.7625 MB / 390.3 MB, free: 2.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.2695, allocations: 14.3 kB / 390.3 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.2695, allocations: 10.62 kB / 390.3 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.2698, allocations: 87.28 kB / 390.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004697/0.2703, allocations: 149.7 kB / 390.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.2722, allocations: 3.148 MB / 393.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.2727, allocations: 39.91 kB / 393.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.2728, allocations: 35.44 kB / 393.8 MB, free: 15 MB / 318.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.0003474/0.2731, allocations: 261.6 kB / 394 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.2733, allocations: 88.28 kB / 394.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009164/0.2742, allocations: 494.7 kB / 394.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.2742, allocations: 3.75 kB / 394.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2742, allocations: 1.219 kB / 394.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2742, allocations: 1.094 kB / 394.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002087/0.2763, allocations: 1.439 MB / 396.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2763, allocations: 2.625 kB / 396.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.2766, allocations: 73.38 kB / 396.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.2768, allocations: 71.27 kB / 396.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.2769, allocations: 15.73 kB / 396.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.2791, allocations: 3.134 MB / 399.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2791, allocations: 2.281 kB / 399.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.2804, allocations: 0.7565 MB / 400.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.2807, allocations: 198.4 kB / 400.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.2808, allocations: 11.5 kB / 400.3 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.2813, allocations: 30.41 kB / 400.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.2814, allocations: 31.89 kB / 400.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.2814, allocations: 14.25 kB / 400.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000747/0.2822, allocations: 0.5672 MB / 401 MB, free: 9.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2822, allocations: 1.375 kB / 401 MB, free: 9.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008637/0.283, allocations: 201 kB / 401.1 MB, free: 9.523 MB / 318.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.00155/0.2846, allocations: 1.347 MB / 402.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.2859, allocations: 0.6963 MB / 403.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2859, allocations: 3.094 kB / 403.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006342/0.2865, allocations: 442.1 kB / 403.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.2877, allocations: 232.6 kB / 403.9 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.2978, allocations: 7.821 MB / 411.7 MB, free: 1.398 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005772/0.2984, allocations: 1.001 MB / 412.7 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004696/0.2989, allocations: 107.3 kB / 412.8 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005269/0.2994, allocations: 377.1 kB / 413.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2994, allocations: 0 / 413.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.3418, allocations: 18.71 MB / 431.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.352/9.694, allocations: 8.141 kB / 431.9 MB, free: 13.5 MB / 350.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