Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008127/0.0008127, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007371/0.0007371, allocations: 98.28 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002677, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1776, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.009287/0.187, allocations: 12.33 MB / 387.5 MB, free: 35.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006378/0.1934, allocations: 4.827 MB / 392.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.1953, allocations: 51.81 kB / 392.4 MB, free: 31.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.1969, allocations: 0.7225 MB / 393.1 MB, free: 30.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.198, allocations: 452.6 kB / 393.6 MB, free: 30.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005764/0.1985, allocations: 303.7 kB / 393.9 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.1997, allocations: 1.976 MB / 395.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009051/0.2007, allocations: 0.9703 MB / 396.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000423/0.2011, allocations: 0.5988 MB / 397.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004419/0.2015, allocations: 0.6801 MB / 398.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.2017, allocations: 92 kB / 398.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.2019, allocations: 132 kB / 398.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2021, allocations: 278.7 kB / 398.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004434/0.2025, allocations: 0.7984 MB / 399.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2037, allocations: 2.185 MB / 401.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2037, allocations: 0 / 401.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2037, allocations: 0 / 401.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.2037, allocations: 0 / 401.6 MB, free: 22.2 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002192/0.2059, allocations: 1.751 MB / 403.3 MB, free: 20.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.2059, allocations: 8.031 kB / 403.3 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.2061, allocations: 211.7 kB / 403.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005491/0.2067, allocations: 250.6 kB / 403.8 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.2078, allocations: 1.024 MB / 404.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/0.2078, allocations: 119.3 kB / 404.9 MB, free: 18.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.208, allocations: 160 kB / 405.1 MB, free: 18.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.2099, allocations: 1.419 MB / 406.5 MB, free: 17.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/0.2099, allocations: 11.91 kB / 406.5 MB, free: 17.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.21, allocations: 64 kB / 406.6 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.21, allocations: 36 kB / 406.6 MB, free: 16.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.2115, allocations: 0.9673 MB / 407.6 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005376/0.2169, allocations: 6.175 MB / 413.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008476/0.2178, allocations: 0.6608 MB / 414.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.2181, allocations: 243 kB / 414.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.2182, allocations: 8.438 kB / 414.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.2182, allocations: 42.94 kB / 414.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=51): time 1.944e-06/0.2182, allocations: 0 / 414.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002303/0.2205, allocations: 1.758 MB / 416.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.2205, allocations: 89.53 kB / 416.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.2216, allocations: 1.116 MB / 417.6 MB, free: 5.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2216, allocations: 33.7 kB / 417.7 MB, free: 5.426 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/0.222, allocations: 0.817 MB / 418.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.922e-05/0.2221, allocations: 197.2 kB / 418.7 MB, free: 4.402 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.2221, allocations: 20 kB / 418.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.2222, allocations: 345.9 kB / 419 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.2226, allocations: 245.9 kB / 419.3 MB, free: 3.801 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004977/0.2231, allocations: 0.6368 MB / 419.9 MB, free: 2.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009082/0.224, allocations: 0.9263 MB / 420.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.224, allocations: 4 kB / 420.8 MB, free: 1.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00128/0.2253, allocations: 0.9986 MB / 421.8 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.2254, allocations: 489.5 kB / 422.3 MB, free: 200 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.2254, allocations: 12 kB / 422.3 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001223/0.2256, allocations: 36.84 kB / 422.4 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.2262, allocations: 231.6 kB / 422.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008802/0.2271, allocations: 1.299 MB / 423.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.2277, allocations: 56.05 kB / 424 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.2278, allocations: 48 kB / 424 MB, free: 14.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.97e-06/0.2278, allocations: 7.938 kB / 424 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/0.229, allocations: 0.8111 MB / 424.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.229, allocations: 24.05 kB / 424.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.899e-05/0.2291, allocations: 36.84 kB / 424.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/0.2297, allocations: 219.6 kB / 425.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007885/0.2305, allocations: 1.295 MB / 426.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004836/0.231, allocations: 32 kB / 426.4 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/0.2311, allocations: 48 kB / 426.5 MB, free: 11.78 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004714/0.2316, allocations: 418.9 kB / 426.9 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.2317, allocations: 122.4 kB / 427 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.2327, allocations: 0.5791 MB / 427.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.2327, allocations: 4 kB / 427.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2327, allocations: 4 kB / 427.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2328, allocations: 3.984 kB / 427.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.2353, allocations: 1.882 MB / 429.5 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.2353, allocations: 4 kB / 429.5 MB, free: 8.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.2358, allocations: 112.1 kB / 429.6 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.098e-05/0.2359, allocations: 24.84 kB / 429.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.2359, allocations: 16 kB / 429.6 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007679/0.2367, allocations: 1.276 MB / 430.9 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2367, allocations: 7.969 kB / 430.9 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.238, allocations: 0.9384 MB / 431.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.2383, allocations: 251.5 kB / 432.1 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2384, allocations: 12 kB / 432.1 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004652/0.2389, allocations: 39.97 kB / 432.1 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.239, allocations: 40.33 kB / 432.2 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.239, allocations: 16 kB / 432.2 MB, free: 5.754 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009254/0.2399, allocations: 0.7556 MB / 433 MB, free: 4.992 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2399, allocations: 0 / 433 MB, free: 4.992 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001172/0.2411, allocations: 472 kB / 433.4 MB, free: 4.531 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001658/0.2428, allocations: 1.513 MB / 434.9 MB, free: 2.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.2446, allocations: 1.254 MB / 436.2 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2446, allocations: 0 / 436.2 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004943/0.2451, allocations: 361.7 kB / 436.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.2465, allocations: 276.8 kB / 436.8 MB, free: 1.066 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.2571, allocations: 7.609 MB / 444.4 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006657/0.2578, allocations: 1.169 MB / 445.6 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006279/0.2585, allocations: 0.5579 MB / 446.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2585, allocations: 0 / 446.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.553/3.811, allocations: 27.03 MB / 473.2 MB, free: 12.15 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches