Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 114.5 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 47.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.1977/0.3127, allocations: 7.94 MB / 382.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004478/0.3173, allocations: 2.626 MB / 385.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.3183, allocations: 23.97 kB / 385.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.3201, allocations: 0.5844 MB / 385.8 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.3215, allocations: 488.4 kB / 386.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.3221, allocations: 234.3 kB / 386.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.3235, allocations: 1.434 MB / 388 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007606/0.3243, allocations: 0.582 MB / 388.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007483/0.3251, allocations: 0.541 MB / 389.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000609/0.3257, allocations: 0.591 MB / 389.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.3259, allocations: 134.3 kB / 389.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003824/0.3263, allocations: 176.4 kB / 390 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3264, allocations: 272.4 kB / 390.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005253/0.327, allocations: 0.6522 MB / 390.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002014/0.329, allocations: 1.697 MB / 392.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.329, allocations: 1.312 kB / 392.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.329, allocations: 0 / 392.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.113e-05/0.3291, allocations: 0 / 392.6 MB, free: 4.289 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002333/0.3314, allocations: 1.464 MB / 394.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3315, allocations: 9.188 kB / 394.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001618/0.3316, allocations: 156.3 kB / 394.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.3322, allocations: 176.5 kB / 394.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.3334, allocations: 0.7305 MB / 395.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.3334, allocations: 72.69 kB / 395.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.3336, allocations: 100.2 kB / 395.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.3351, allocations: 0.9228 MB / 396.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.3352, allocations: 3.594 kB / 396.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/0.3352, allocations: 36.28 kB / 396.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.3353, allocations: 28.78 kB / 396.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.3365, allocations: 0.6228 MB / 396.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005145/0.3416, allocations: 3.89 MB / 400.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.3423, allocations: 363.8 kB / 401.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.3426, allocations: 143.1 kB / 401.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.3426, allocations: 3.062 kB / 401.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3426, allocations: 45.75 kB / 401.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.3427, allocations: 0 / 401.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002514/0.3452, allocations: 1.214 MB / 402.6 MB, free: 14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.3453, allocations: 81.84 kB / 402.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.3465, allocations: 0.8285 MB / 403.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.3465, allocations: 31.08 kB / 403.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003955/0.3469, allocations: 0.5776 MB / 404.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.347, allocations: 135.6 kB / 404.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.3472, allocations: 126.3 kB / 404.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3474, allocations: 340.3 kB / 404.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.3477, allocations: 147 kB / 404.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005264/0.3482, allocations: 460.3 kB / 405.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008745/0.3491, allocations: 0.6312 MB / 405.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.3491, allocations: 3.219 kB / 405.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001275/0.3504, allocations: 0.6904 MB / 406.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3504, allocations: 12.8 kB / 406.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.3505, allocations: 14.78 kB / 406.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.3506, allocations: 31.98 kB / 406.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.3512, allocations: 160.3 kB / 406.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.3523, allocations: 1.388 MB / 408.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000653/0.353, allocations: 38.56 kB / 408.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.353, allocations: 32.12 kB / 408.2 MB, free: 9.418 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * 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.0004219/0.3535, allocations: 263.1 kB / 408.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.3536, allocations: 87.89 kB / 408.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008144/0.3544, allocations: 377.2 kB / 409 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3545, allocations: 3.781 kB / 409 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3545, allocations: 4 kB / 409 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3545, allocations: 0.9688 kB / 409 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.3565, allocations: 1.276 MB / 410.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3565, allocations: 5.75 kB / 410.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.3569, allocations: 74.55 kB / 410.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.505e-05/0.357, allocations: 24.75 kB / 410.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.357, allocations: 8.406 kB / 410.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009551/0.358, allocations: 1.371 MB / 411.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.358, allocations: 5.562 kB / 411.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.359, allocations: 0.6392 MB / 412.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003383/0.3594, allocations: 192 kB / 412.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3595, allocations: 12.16 kB / 412.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.3599, allocations: 27.98 kB / 412.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/0.36, allocations: 29.41 kB / 412.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.36, allocations: 7.969 kB / 412.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007844/0.3608, allocations: 0.5609 MB / 413.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3608, allocations: 0 / 413.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008468/0.3617, allocations: 187.8 kB / 413.4 MB, free: 5.465 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001446/0.3631, allocations: 1.204 MB / 414.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.3642, allocations: 0.5068 MB / 415.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.3643, allocations: 5.125 kB / 415.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.3647, allocations: 264 kB / 415.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.366, allocations: 207.4 kB / 415.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.3776, allocations: 7.125 MB / 422.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/0.3784, allocations: 0.9884 MB / 423.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004502/0.3789, allocations: 106.9 kB / 423.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.3793, allocations: 367.3 kB / 424.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3794, allocations: 4 kB / 424.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04836/0.4277, allocations: 17.89 MB / 442 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.08, allocations: 19.89 kB / 442 MB, free: 10.73 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches