Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_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.001269/0.001269, allocations: 113.4 kB / 17.72 MB, free: 5.445 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.00125/0.00125, allocations: 184.1 kB / 18.65 MB, free: 4.52 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.37/1.37, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001634/0.001634, allocations: 55.91 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08663/0.08827, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1737/0.2621, allocations: 12.1 MB / 386.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005058/0.2672, allocations: 3.31 MB / 390.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009495/0.2682, allocations: 34.78 kB / 390.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.2697, allocations: 0.6687 MB / 390.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.2712, allocations: 0.728 MB / 391.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007432/0.2719, allocations: 407.6 kB / 391.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002219/0.2741, allocations: 2.412 MB / 394.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.2753, allocations: 0.9953 MB / 395.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.2769, allocations: 0.8997 MB / 396.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001209/0.2781, allocations: 0.9844 MB / 397.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003156/0.2785, allocations: 229.9 kB / 397.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006087/0.2791, allocations: 265.4 kB / 397.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003528/0.2795, allocations: 463.8 kB / 398.1 MB, free: 188 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.2807, allocations: 1.077 MB / 399.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003947/0.2846, allocations: 2.84 MB / 402 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2846, allocations: 1.281 kB / 402 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2846, allocations: 0 / 402 MB, free: 14.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.039e-05/0.2847, allocations: 4 kB / 402 MB, free: 14.4 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004206/0.2889, allocations: 2.213 MB / 404.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.289, allocations: 9.156 kB / 404.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002717/0.2893, allocations: 222.6 kB / 404.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.2902, allocations: 290.7 kB / 404.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.2921, allocations: 1.137 MB / 405.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.804e-05/0.2923, allocations: 121.1 kB / 406 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.2925, allocations: 156.8 kB / 406.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/0.2952, allocations: 1.504 MB / 407.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.2952, allocations: 7.297 kB / 407.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/0.2954, allocations: 67.12 kB / 407.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.2954, allocations: 41.69 kB / 407.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002151/0.2976, allocations: 1.045 MB / 408.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008448/0.306, allocations: 6.251 MB / 415.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.3076, allocations: 0.6187 MB / 415.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009158/0.3085, allocations: 470.7 kB / 416.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.3086, allocations: 7.688 kB / 416.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3086, allocations: 39.31 kB / 416.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.554e-06/0.3086, allocations: 4 kB / 416.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.004929/0.3136, allocations: 2.393 MB / 418.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.3137, allocations: 111.2 kB / 418.7 MB, free: 2.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.3154, allocations: 1.305 MB / 420 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.3155, allocations: 41.11 kB / 420 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000704/0.3162, allocations: 0.8683 MB / 420.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.3164, allocations: 274.1 kB / 421.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.3167, allocations: 208.4 kB / 421.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3169, allocations: 352.4 kB / 421.7 MB, free: 256 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006105/0.3175, allocations: 279 kB / 422 MB, free: 15.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000988/0.3185, allocations: 0.7382 MB / 422.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.3202, allocations: 1.088 MB / 423.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.3202, allocations: 4 kB / 423.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002444/0.3227, allocations: 1.272 MB / 425.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.3227, allocations: 12 kB / 425.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.885e-05/0.3227, allocations: 19.94 kB / 425.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005341/0.3233, allocations: 147 kB / 425.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008391/0.3241, allocations: 251.6 kB / 425.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004372/0.3285, allocations: 4.634 MB / 430.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000992/0.3295, allocations: 63.86 kB / 430.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-05/0.3296, allocations: 56 kB / 430.3 MB, free: 6.836 MB / 350.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.0006552/0.3303, allocations: 357.5 kB / 430.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.3305, allocations: 147.1 kB / 430.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.3323, allocations: 0.8256 MB / 431.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.3323, allocations: 11.94 kB / 431.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3323, allocations: 0 / 431.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.3323, allocations: 3.984 kB / 431.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003859/0.3362, allocations: 2.334 MB / 433.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.3362, allocations: 4 kB / 434 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005561/0.3368, allocations: 127.8 kB / 434.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004322/0.3372, allocations: 138.9 kB / 434.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.3373, allocations: 20 kB / 434.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004589/0.3419, allocations: 4.787 MB / 439 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/0.3419, allocations: 7.938 kB / 439 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00245/0.3443, allocations: 1.301 MB / 440.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005528/0.3449, allocations: 296.1 kB / 440.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.3451, allocations: 19.98 kB / 440.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.3457, allocations: 35.97 kB / 440.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.3458, allocations: 72.36 kB / 440.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.3459, allocations: 20 kB / 440.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.3472, allocations: 0.8742 MB / 441.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3472, allocations: 0 / 441.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001265/0.3485, allocations: 332 kB / 442 MB, free: 10.48 MB / 366.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.002948/0.3515, allocations: 1.881 MB / 443.8 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.3535, allocations: 1.128 MB / 445 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3536, allocations: 0 / 445 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.3546, allocations: 0.712 MB / 445.7 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.3563, allocations: 360.7 kB / 446 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/0.3751, allocations: 11.73 MB / 457.8 MB, free: 9.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009115/0.376, allocations: 1.21 MB / 459 MB, free: 8.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006496/0.3767, allocations: 175.6 kB / 459.1 MB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007604/0.3775, allocations: 0.6125 MB / 459.8 MB, free: 7.797 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3775, allocations: 0 / 459.8 MB, free: 7.797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07824/0.4557, allocations: 31.17 MB / 490.9 MB, free: 8.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/14.77, allocations: 15.86 kB / 490.9 MB, free: 8.508 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches