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.001497/0.001497, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001748/0.001748, allocations: 184.2 kB / 18.66 MB, free: 4.418 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.312/1.312, 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.001224/0.001224, allocations: 55.91 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0768/0.07804, allocations: 46.63 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1666/0.2447, allocations: 12.08 MB / 386.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005069/0.2498, allocations: 3.308 MB / 390.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.2511, allocations: 35.75 kB / 390.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2527, allocations: 0.669 MB / 390.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001842/0.2546, allocations: 0.725 MB / 391.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.2554, allocations: 407.7 kB / 391.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002477/0.2579, allocations: 2.414 MB / 394.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.2591, allocations: 0.9963 MB / 395.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.2604, allocations: 0.9045 MB / 396.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009925/0.2614, allocations: 0.9891 MB / 397.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003048/0.2617, allocations: 229.5 kB / 397.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005468/0.2622, allocations: 270.3 kB / 397.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002633/0.2625, allocations: 463.4 kB / 398.1 MB, free: 160 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.2637, allocations: 1.074 MB / 399.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003843/0.2675, allocations: 2.826 MB / 402 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2676, allocations: 1.781 kB / 402 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2676, allocations: 0 / 402 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.382e-05/0.2677, allocations: 0 / 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.004141/0.2718, allocations: 2.161 MB / 404.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2719, allocations: 9.625 kB / 404.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002659/0.2722, allocations: 225.6 kB / 404.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000975/0.2731, allocations: 282.9 kB / 404.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.2752, allocations: 1.122 MB / 405.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2753, allocations: 121 kB / 405.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.2756, allocations: 156.3 kB / 406.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002539/0.2781, allocations: 1.508 MB / 407.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.298e-05/0.2782, allocations: 16.16 kB / 407.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.2783, allocations: 66.44 kB / 407.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.2784, allocations: 37.56 kB / 407.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.2805, allocations: 1.045 MB / 408.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008071/0.2885, allocations: 6.225 MB / 415 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.2901, allocations: 0.6258 MB / 415.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008756/0.291, allocations: 468.4 kB / 416.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.291, allocations: 10.64 kB / 416.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.2911, allocations: 43.88 kB / 416.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.405e-06/0.2911, allocations: 0 / 416.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.004924/0.296, allocations: 2.362 MB / 418.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.2961, allocations: 111.6 kB / 418.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00199/0.2981, allocations: 1.316 MB / 419.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.9e-05/0.2982, allocations: 37.23 kB / 419.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006252/0.2988, allocations: 0.8472 MB / 420.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/0.299, allocations: 260 kB / 421 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003185/0.2993, allocations: 203.8 kB / 421.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2995, allocations: 347.5 kB / 421.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000592/0.3001, allocations: 288 kB / 421.9 MB, free: 120 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008558/0.3009, allocations: 0.7343 MB / 422.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.3024, allocations: 1.088 MB / 423.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.3025, allocations: 7.938 kB / 423.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002488/0.305, allocations: 1.268 MB / 425 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.305, allocations: 12 kB / 425 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.305, allocations: 16 kB / 425 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000505/0.3055, allocations: 138.7 kB / 425.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008902/0.3064, allocations: 251.6 kB / 425.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003926/0.3104, allocations: 4.634 MB / 430 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.3115, allocations: 59.81 kB / 430.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.465e-05/0.3116, allocations: 60 kB / 430.1 MB, free: 6.988 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.0006012/0.3122, allocations: 357.4 kB / 430.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.3125, allocations: 142.4 kB / 430.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.3142, allocations: 0.8295 MB / 431.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3142, allocations: 11.94 kB / 431.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3143, allocations: 0 / 431.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3143, allocations: 3.984 kB / 431.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003988/0.3183, allocations: 2.327 MB / 433.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.3183, allocations: 4 kB / 433.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005823/0.3189, allocations: 123.8 kB / 433.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004556/0.3193, allocations: 138.8 kB / 434 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.723e-05/0.3194, allocations: 19.98 kB / 434.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.3235, allocations: 4.783 MB / 438.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.3235, allocations: 11.92 kB / 438.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.3259, allocations: 1.296 MB / 440.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006512/0.3265, allocations: 283.3 kB / 440.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/0.3268, allocations: 19.98 kB / 440.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007377/0.3276, allocations: 43.97 kB / 440.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3277, allocations: 56.38 kB / 440.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.3277, allocations: 27.98 kB / 440.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.3291, allocations: 0.8781 MB / 441.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3291, allocations: 0 / 441.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001353/0.3304, allocations: 332 kB / 441.8 MB, free: 10.66 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.002766/0.3332, allocations: 1.876 MB / 443.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.3351, allocations: 1.129 MB / 444.8 MB, free: 7.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3352, allocations: 8.062 kB / 444.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3362, allocations: 0.703 MB / 445.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.338, allocations: 364.5 kB / 445.8 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01905/0.3571, allocations: 11.65 MB / 457.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009119/0.3581, allocations: 1.214 MB / 458.7 MB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006788/0.3588, allocations: 171.6 kB / 458.9 MB, free: 8.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007718/0.3595, allocations: 0.6164 MB / 459.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3595, allocations: 0 / 459.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06718/0.4267, allocations: 31.63 MB / 491.1 MB, free: 8.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.04, allocations: 11.8 kB / 491.1 MB, free: 8.297 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