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.0009531/0.000953, allocations: 113 kB / 16.63 MB, free: 6.332 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.0009025/0.0009025, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.239/1.239, allocations: 222.9 MB / 241.2 MB, free: 13.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 51.83 kB / 300.2 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0786/0.07964, allocations: 49.45 MB / 349.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01193/0.0916, allocations: 12.05 MB / 361.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004905/0.09653, allocations: 3.238 MB / 365 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007295/0.09728, allocations: 35.94 kB / 365 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.09864, allocations: 0.5865 MB / 365.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.09986, allocations: 0.6284 MB / 366.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005977/0.1005, allocations: 351.7 kB / 366.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.1024, allocations: 2.397 MB / 369 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1334/0.2358, allocations: 0.987 MB / 370 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.2372, allocations: 0.8972 MB / 370.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000883/0.2381, allocations: 0.9847 MB / 371.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003697/0.2385, allocations: 230.1 kB / 372.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00059/0.2391, allocations: 268.4 kB / 372.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.2394, allocations: 459.5 kB / 372.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.2405, allocations: 1.075 MB / 373.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002428/0.2429, allocations: 2.794 MB / 376.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2429, allocations: 1.938 kB / 376.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2429, allocations: 0 / 376.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.243, allocations: 1.875 kB / 376.7 MB, free: 11.07 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003182/0.2461, allocations: 2.153 MB / 378.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2462, allocations: 10.11 kB / 378.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002406/0.2464, allocations: 226.9 kB / 379 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008218/0.2473, allocations: 283 kB / 379.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.2487, allocations: 1.104 MB / 380.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.733e-05/0.2487, allocations: 116.4 kB / 380.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.249, allocations: 168 kB / 380.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.2513, allocations: 1.507 MB / 382.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/0.2513, allocations: 11.47 kB / 382.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.2514, allocations: 63.56 kB / 382.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.2515, allocations: 37.88 kB / 382.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.2533, allocations: 1.052 MB / 383.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006166/0.2595, allocations: 6.29 MB / 389.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.2609, allocations: 0.6075 MB / 390.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00079/0.2617, allocations: 455.3 kB / 390.7 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.465e-05/0.2617, allocations: 19.2 kB / 390.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.2618, allocations: 45.88 kB / 390.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.274e-06/0.2618, allocations: 0 / 390.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004059/0.2658, allocations: 2.355 MB / 393.1 MB, free: 1.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.2659, allocations: 114.7 kB / 393.2 MB, free: 1.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.2673, allocations: 1.304 MB / 394.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.2673, allocations: 36.27 kB / 394.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.2677, allocations: 0.8531 MB / 395.4 MB, free: 356 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.2678, allocations: 265.2 kB / 395.7 MB, free: 124 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.2681, allocations: 203.4 kB / 395.9 MB, free: 0 / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2682, allocations: 355 kB / 396.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.2688, allocations: 280.5 kB / 396.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007993/0.2696, allocations: 0.7375 MB / 397.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.271, allocations: 1.083 MB / 398.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.271, allocations: 8.469 kB / 398.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002044/0.273, allocations: 1.263 MB / 399.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2731, allocations: 10.12 kB / 399.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.2731, allocations: 13.72 kB / 399.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.2736, allocations: 145.8 kB / 399.8 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000725/0.2743, allocations: 256.7 kB / 400 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.2776, allocations: 4.637 MB / 404.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.2786, allocations: 64.72 kB / 404.7 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.273e-05/0.2787, allocations: 52.31 kB / 404.8 MB, free: 8.523 MB / 318.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.0005382/0.2792, allocations: 359.2 kB / 405.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.2794, allocations: 139.7 kB / 405.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.281, allocations: 0.8288 MB / 406.1 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.281, allocations: 6.469 kB / 406.1 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.281, allocations: 3.938 kB / 406.1 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.281, allocations: 3.984 kB / 406.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.2845, allocations: 2.336 MB / 408.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.2845, allocations: 8.859 kB / 408.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005599/0.2851, allocations: 132.3 kB / 408.6 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000431/0.2855, allocations: 133.8 kB / 408.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.557e-05/0.2856, allocations: 27.92 kB / 408.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003614/0.2892, allocations: 4.778 MB / 413.5 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2892, allocations: 6.906 kB / 413.5 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.2914, allocations: 1.305 MB / 414.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004553/0.2918, allocations: 275.3 kB / 415.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.2921, allocations: 27.92 kB / 415.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006879/0.2928, allocations: 36.28 kB / 415.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.2929, allocations: 63.91 kB / 415.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.293, allocations: 31.98 kB / 415.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.2942, allocations: 0.8742 MB / 416.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2942, allocations: 0 / 416.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001207/0.2954, allocations: 328 kB / 416.4 MB, free: 13.41 MB / 334.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.002449/0.2979, allocations: 1.875 MB / 418.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.2998, allocations: 1.15 MB / 419.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2998, allocations: 3.938 kB / 419.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009575/0.3008, allocations: 0.7127 MB / 420.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.3025, allocations: 360 kB / 420.5 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02068/0.3232, allocations: 13.67 MB / 434.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008573/0.3241, allocations: 1.217 MB / 435.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007326/0.3248, allocations: 175.6 kB / 435.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/0.3256, allocations: 0.6086 MB / 436.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3256, allocations: 0 / 436.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.047/1.373, allocations: 30.29 MB / 466.5 MB, free: 10.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/1.373, allocations: 256 kB / 466.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.959, allocations: 0 / 466.7 MB, free: 10.45 MB / 382.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