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.001367/0.001367, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001978, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2926, allocations: 50.54 MB / 408.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01401/0.3066, allocations: 8.097 MB / 416.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006897/0.3136, allocations: 2.664 MB / 419.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.3152, allocations: 27.94 kB / 419.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.318, allocations: 0.5519 MB / 420.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.3208, allocations: 460.4 kB / 420.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.3219, allocations: 259.6 kB / 420.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.3251, allocations: 1.471 MB / 422.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.3268, allocations: 0.5807 MB / 422.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.3282, allocations: 0.5486 MB / 423.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.3298, allocations: 0.6066 MB / 424 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004942/0.3303, allocations: 140 kB / 424.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007787/0.3311, allocations: 180 kB / 424.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004757/0.3316, allocations: 275 kB / 424.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.3331, allocations: 0.657 MB / 425.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003728/0.3369, allocations: 1.735 MB / 427 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3369, allocations: 4 kB / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.3369, allocations: 0 / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.292e-05/0.337, allocations: 3.938 kB / 427 MB, free: 15.35 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.004679/0.3417, allocations: 1.475 MB / 428.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.887e-05/0.3418, allocations: 12.03 kB / 428.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003876/0.3422, allocations: 148.4 kB / 428.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.3433, allocations: 200 kB / 428.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.3456, allocations: 0.7422 MB / 429.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3457, allocations: 74 kB / 429.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.346, allocations: 99.95 kB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/0.3487, allocations: 0.9385 MB / 430.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.915e-05/0.3488, allocations: 4 kB / 430.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.349, allocations: 40 kB / 430.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/0.349, allocations: 24 kB / 430.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.3511, allocations: 0.6286 MB / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008478/0.3596, allocations: 3.912 MB / 435.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.3607, allocations: 439 kB / 435.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008386/0.3616, allocations: 272.8 kB / 436 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.3616, allocations: 8.312 kB / 436 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.3617, allocations: 42.89 kB / 436 MB, free: 5.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 3.577e-06/0.3617, allocations: 0 / 436 MB, free: 5.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.004249/0.366, allocations: 1.423 MB / 437.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.291e-05/0.3661, allocations: 85.11 kB / 437.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.3677, allocations: 0.8175 MB / 438.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.3677, allocations: 33.7 kB / 438.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005058/0.3683, allocations: 0.5735 MB / 439 MB, free: 2.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.3684, allocations: 166.6 kB / 439.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.3687, allocations: 130.6 kB / 439.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3689, allocations: 333.9 kB / 439.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003831/0.3693, allocations: 169.9 kB / 439.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006459/0.3699, allocations: 456 kB / 440.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.371, allocations: 0.6661 MB / 440.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.371, allocations: 7.938 kB / 440.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00159/0.3726, allocations: 0.7672 MB / 441.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3726, allocations: 12 kB / 441.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.3727, allocations: 8 kB / 441.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003021/0.373, allocations: 89.86 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.3735, allocations: 151.8 kB / 441.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.3766, allocations: 3.134 MB / 445 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006848/0.3773, allocations: 40 kB / 445.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.18e-05/0.3774, allocations: 36 kB / 445.1 MB, free: 12.16 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.0005291/0.3779, allocations: 261.5 kB / 445.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/0.3781, allocations: 87.44 kB / 445.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.3792, allocations: 495.5 kB / 445.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3792, allocations: 4 kB / 445.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3792, allocations: 7.938 kB / 445.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3793, allocations: 3.984 kB / 445.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.3819, allocations: 1.435 MB / 447.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.382, allocations: 4 kB / 447.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.3823, allocations: 75.83 kB / 447.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002369/0.3825, allocations: 77.89 kB / 447.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.3826, allocations: 8 kB / 447.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002991/0.3856, allocations: 3.127 MB / 450.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.3856, allocations: 4 kB / 450.7 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.387, allocations: 0.7743 MB / 451.4 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004016/0.3874, allocations: 204.5 kB / 451.6 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3876, allocations: 8 kB / 451.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/0.3881, allocations: 31.97 kB / 451.7 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.61e-05/0.3882, allocations: 27.97 kB / 451.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.3882, allocations: 19.98 kB / 451.7 MB, free: 5.086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009405/0.3892, allocations: 0.5576 MB / 452.3 MB, free: 4.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3892, allocations: 0 / 452.3 MB, free: 4.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000934/0.3901, allocations: 204 kB / 452.5 MB, free: 4.332 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.001913/0.392, allocations: 1.35 MB / 453.8 MB, free: 2.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.3935, allocations: 0.6824 MB / 454.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3936, allocations: 0 / 454.5 MB, free: 2.223 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.3943, allocations: 450.3 kB / 455 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.3955, allocations: 223.1 kB / 455.2 MB, free: 1.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.4082, allocations: 7.321 MB / 462.5 MB, free: 9.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008878/0.4091, allocations: 1.005 MB / 463.5 MB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004575/0.4096, allocations: 107.2 kB / 463.6 MB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.4101, allocations: 371.3 kB / 464 MB, free: 8.273 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4101, allocations: 0 / 464 MB, free: 8.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.067/0.4771, allocations: 19.09 MB / 483 MB, free: 5.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.5, allocations: 336 / 483.1 MB, free: 5.457 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.1.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