Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001674/0.001675, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002591/0.002591, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2733, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01278/0.2861, allocations: 12.15 MB / 412.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006274/0.2924, allocations: 3.284 MB / 415.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00173/0.2941, allocations: 35.94 kB / 415.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002173/0.2964, allocations: 0.6594 MB / 416.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00278/0.2992, allocations: 0.7364 MB / 417.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.3004, allocations: 399.5 kB / 417.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00366/0.3041, allocations: 2.419 MB / 419.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.3057, allocations: 0.993 MB / 420.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.3071, allocations: 0.9066 MB / 421.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.3088, allocations: 0.98 MB / 422.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005141/0.3093, allocations: 231.9 kB / 423 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007285/0.31, allocations: 268 kB / 423.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004444/0.3105, allocations: 466.3 kB / 423.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001521/0.312, allocations: 1.077 MB / 424.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.315, allocations: 2.826 MB / 427.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.315, allocations: 4 kB / 427.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.315, allocations: 0 / 427.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.354e-05/0.3151, allocations: 4 kB / 427.7 MB, free: 13.27 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004355/0.3195, allocations: 2.156 MB / 429.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3195, allocations: 8.031 kB / 429.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003257/0.3199, allocations: 220.1 kB / 430 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009579/0.3208, allocations: 282.4 kB / 430.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.3228, allocations: 1.123 MB / 431.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.866e-05/0.3229, allocations: 119 kB / 431.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.3231, allocations: 155.9 kB / 431.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/0.3257, allocations: 1.508 MB / 433.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.748e-05/0.3258, allocations: 11.84 kB / 433.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3259, allocations: 72 kB / 433.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/0.3259, allocations: 36 kB / 433.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002071/0.328, allocations: 1.041 MB / 434.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008035/0.336, allocations: 6.242 MB / 440.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.3375, allocations: 0.6133 MB / 441.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008988/0.3385, allocations: 467.9 kB / 441.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.3385, allocations: 8.562 kB / 441.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3386, allocations: 39.12 kB / 441.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.464e-06/0.3386, allocations: 0 / 441.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004951/0.3435, allocations: 2.356 MB / 444.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.3436, allocations: 119.3 kB / 444.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/0.3455, allocations: 1.306 MB / 445.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.3455, allocations: 45.7 kB / 445.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005743/0.3461, allocations: 0.8492 MB / 446.4 MB, free: 9.859 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.3463, allocations: 256.3 kB / 446.6 MB, free: 9.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.3466, allocations: 202.7 kB / 446.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3468, allocations: 353.9 kB / 447.2 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.3474, allocations: 278.5 kB / 447.5 MB, free: 8.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008457/0.3482, allocations: 0.7498 MB / 448.2 MB, free: 7.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.3497, allocations: 1.08 MB / 449.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.3497, allocations: 4 kB / 449.3 MB, free: 6.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002356/0.3521, allocations: 1.26 MB / 450.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.3521, allocations: 12 kB / 450.6 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.3522, allocations: 16.5 kB / 450.6 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004976/0.3527, allocations: 142.6 kB / 450.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.3535, allocations: 255.6 kB / 451 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.3572, allocations: 4.642 MB / 455.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009251/0.3581, allocations: 63.94 kB / 455.7 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.421e-05/0.3582, allocations: 52 kB / 455.7 MB, free: 15.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005439/0.3588, allocations: 357.5 kB / 456.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.359, allocations: 138.3 kB / 456.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.3607, allocations: 0.8373 MB / 457 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3608, allocations: 8 kB / 457.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3608, allocations: 4 kB / 457.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3608, allocations: 3.984 kB / 457.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.3648, allocations: 2.326 MB / 459.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3648, allocations: 4.469 kB / 459.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005592/0.3654, allocations: 135.7 kB / 459.5 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004589/0.3659, allocations: 130.5 kB / 459.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.3659, allocations: 20 kB / 459.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004156/0.3701, allocations: 4.787 MB / 464.5 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.3701, allocations: 4 kB / 464.5 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.3725, allocations: 1.304 MB / 465.8 MB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006085/0.3732, allocations: 279.4 kB / 466 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002857/0.3735, allocations: 19.98 kB / 466.1 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007274/0.3742, allocations: 39.91 kB / 466.1 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.3743, allocations: 64.42 kB / 466.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.3744, allocations: 24 kB / 466.2 MB, free: 4.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00136/0.3758, allocations: 0.878 MB / 467.1 MB, free: 3.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3758, allocations: 0 / 467.1 MB, free: 3.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001309/0.3771, allocations: 328 kB / 467.4 MB, free: 3.305 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002924/0.38, allocations: 1.888 MB / 469.3 MB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.3821, allocations: 1.125 MB / 470.4 MB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3821, allocations: 0 / 470.4 MB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3832, allocations: 0.711 MB / 471.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.385, allocations: 363.5 kB / 471.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01913/0.4041, allocations: 11.66 MB / 483.1 MB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009434/0.4051, allocations: 1.214 MB / 484.3 MB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006633/0.4058, allocations: 171.6 kB / 484.5 MB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007528/0.4065, allocations: 0.6125 MB / 485.1 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4065, allocations: 0 / 485.1 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5516/0.9582, allocations: 31.65 MB / 0.5046 GB, free: 1.422 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.32/27.28, allocations: 14.31 kB / 0.5047 GB, free: 1.414 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches